/* =====================================================================
   Beau Worrall · portfolio
   Style reference: nixtio.com (colours, type, spacing and motion measured
   at 1440 px, Oct 2026). Content and imagery are Beau's own.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #F5F5F5;
  --ink: #0A0A0A;
  --ink-60: rgba(10, 10, 10, .6);
  --ink-32: rgba(10, 10, 10, .32);
  --white-60: rgba(255, 255, 255, .6);
  --card: #FFFFFF;
  --line: rgba(10, 10, 10, .08);
  --line-dark: rgba(255, 255, 255, .16);

  --r-xl: 25px;
  --r-lg: 18px;
  --pill: 100px;

  --fast: .15s ease-in-out;
  --base: .3s ease-in-out;
  --slow: .5s ease-in-out;
  --quad: cubic-bezier(.4, 0, .2, 1);
  --sheet: cubic-bezier(.7, 0, .3, 1);

  /* Page width, as nixtio's wrapper: 1136px of content with at least 36px either side, widening to 1448px on
     screens from 1500px (see Responsive), and 24px sides on phones. --gutter is the space either side. */
  --max: 1136px;
  --pad: 36px;
  --gutter: max(var(--pad), calc((100vw - var(--max)) / 2));
  --label-col: 283px;
  --head-gap: 90px;
  --section-gap: 160px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-60);
  font: 500 16px/1.4 var(--font);
  letter-spacing: -.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
p, h1, h2, h3, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
.muted { color: var(--ink-60); }
.dark .muted { color: var(--white-60); }
.ink { color: var(--ink); }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 2000;
  padding: 10px 16px; border-radius: var(--pill);
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform var(--base);
}
.skip:focus { transform: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .hero :focus-visible, .menu :focus-visible { outline-color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.sec { padding-top: var(--section-gap); }
.cols { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); }
.head { margin-bottom: var(--head-gap); }

/* ---------- Type ---------- */
.label { font-size: 16px; line-height: 24px; color: var(--ink-60); max-width: 224px; }
.dark .label { color: #fff; }
.h2 {
  font-size: 52px; line-height: 1.1; font-weight: 600; letter-spacing: -.05em; color: var(--ink);
  text-wrap: balance;
}
.dark .h2 { color: #fff; }
.display { font-size: clamp(88px, 10vw, 144px); line-height: 1; font-weight: 600; letter-spacing: -.05em; color: var(--ink); }
.lead { font-size: 22px; line-height: 26.4px; font-weight: 500; letter-spacing: -.04em; color: var(--ink); }

/* ---------- Buttons (rolling label) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--pill); overflow: hidden;
  font-family: var(--font); font-weight: 600; letter-spacing: -.02em; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--base), color var(--base), box-shadow var(--base);
}
.btn--sm { height: 30px; padding: 0 12px; font-size: 12px; line-height: 12px; }
.btn--md { height: 40px; padding: 0 20px; font-size: 14px; line-height: 16px; }
.btn--lg { height: 58px; padding: 0 30px; font-size: 18px; line-height: 18px; }
.btn--primary { background: #000; color: #fff; box-shadow: inset 0 0 2px rgba(255, 255, 255, .5); }
.btn--secondary { background: #fff; color: #000; }
.btn[disabled] { background: #7a7a7a; color: rgba(255, 255, 255, .85); cursor: not-allowed; box-shadow: none; }

.btn__wrap { position: relative; display: block; perspective: 120px; }
.btn__text { display: block; transform-origin: 50% 50%; backface-visibility: hidden; transition: transform .15s var(--quad); }
.btn__dup { position: absolute; inset: 0; transform: translateY(-52%) rotateX(90deg); transition: transform .3s var(--quad); }
.btn__dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none;
  transition: transform .3s var(--quad);
}
@media (hover: hover) {
  .btn:not([disabled]):hover .btn__text:first-child { transform: translateY(52%) rotateX(-90deg); }
  .btn:not([disabled]):hover .btn__dup { transform: translateY(0) rotateX(0); }
  .btn:not([disabled]):hover .btn__dot { transform: scale(1.1); }
}
.btn:focus-visible .btn__text:first-child { transform: translateY(52%) rotateX(-90deg); }
.btn:focus-visible .btn__dup { transform: translateY(0) rotateX(0); }

/* ---------- Fade-up (AOS equivalent) ---------- */
.js [data-aos] {
  opacity: 0; transform: translate3d(0, 60px, 0);
  transition: opacity .8s ease, transform .8s ease;
  transition-delay: var(--d, 0ms);
}
.js [data-aos].aos-in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 1030; height: 85px;
  display: flex; align-items: flex-start; padding: 29px 28px 0 35px;
  pointer-events: none;
}
.hdr > * { pointer-events: auto; }
.hdr__logo { flex: none; width: 44px; height: 44px; color: var(--ink); transition: transform var(--base), color var(--base); }
.hdr__logo svg { width: 44px; height: 44px; }
.hdr__logo:hover { transform: rotate(-6deg) scale(1.04); }
.hdr__navbox { flex: 1; display: flex; justify-content: center; margin-top: 2px; pointer-events: none; }
.hdr__nav {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-around; gap: 40px;
  width: 100%; max-width: 816px; height: 40px; padding: 0 32px; border-radius: 30px;
  background: rgba(255, 255, 255, 0);
  transition: max-width var(--base), width var(--base), background-color var(--base);
}
.hdr__nav a {
  position: relative; font-size: 16px; line-height: 22.4px; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; transition: color var(--base);
}
.hdr__nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--ink-32); opacity: 0;
  transition: width var(--base), opacity .2s ease-in-out;
}
.hdr__nav a:hover::after, .hdr__nav a:focus-visible::after { width: 100%; opacity: 1; }
.hdr__cta { flex: none; margin-top: 2px; background: #000; color: #fff; }

/* Over the hero and other dark sections */
.hdr.is-dark .hdr__logo { color: #fff; }
.hdr.is-dark .hdr__cta { background: #fff; color: #000; }
.hdr.is-dark:not(.is-scrolled) .hdr__nav a { color: #fff; }
.hdr.is-dark:not(.is-scrolled) .hdr__nav a::after { background: var(--white-60); }
/* Scrolled: the nav becomes a compact white pill */
.hdr.is-scrolled .hdr__nav { max-width: 445px; background: #fff; }
.hdr.is-scrolled .hdr__nav a { color: var(--ink); }

.hdr__menu {
  display: none; flex: none; position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--ink); cursor: pointer; margin-left: 12px;
  transition: background-color var(--base);
}
.hdr__menu:hover { background: rgba(10, 10, 10, .9); }
.hdr__menu span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: #fff; border-radius: 2px;
  transition: transform var(--base), background-color var(--base);
}
.hdr__menu span:first-child { top: 18px; }
.hdr__menu span:last-child { top: 24px; }
.hdr.is-dark .hdr__menu { background: #fff; }
.hdr.is-dark .hdr__menu span { background: var(--ink); }
.menu-open .hdr__menu { background: #fff; }
.menu-open .hdr__menu span { background: var(--ink); }
.menu-open .hdr__menu span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .hdr__menu span:last-child { transform: translateY(-3px) rotate(-45deg); }
.menu-open .hdr__logo { color: #fff; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 1025; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; gap: 48px; overflow-y: auto; overscroll-behavior: contain;
  padding: 110px var(--gutter) 48px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--base), visibility 0s linear .3s;
}
/* Centred when it fits. When it doesn't (a phone turned sideways), it scrolls from the top rather than spilling off
   both ends. */
.menu > :first-child { margin-top: auto; }
.menu > :last-child { margin-bottom: auto; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity var(--base); }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a {
  font-size: 40px; line-height: 1.15; font-weight: 600; letter-spacing: -.05em; color: #fff; text-decoration: none;
  transform: translateY(20px); opacity: 0; transition: color var(--base), transform .5s var(--quad), opacity .5s var(--quad);
}
.menu.is-open nav a { transform: none; opacity: 1; }
.menu.is-open nav a:nth-child(2) { transition-delay: .04s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .08s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .12s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .16s; }
.menu.is-open nav a:nth-child(6) { transition-delay: .2s; }
.menu nav a:hover { color: var(--white-60); }
.menu__foot a { color: var(--white-60); text-decoration: none; font-size: 16px; }
/* short screens (a phone turned sideways): smaller links so the menu fits */
@media (max-height: 520px) {
  .menu { padding-top: 84px; padding-bottom: 24px; gap: 24px; }
  .menu nav { gap: 2px; }
  .menu nav a { font-size: 28px; }
}

/* ---------- Video slots ---------- */
.video-slot { position: relative; overflow: hidden; background: #1a1a1a; }
.video-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-slot__tag { display: none; }
.show-slots .video-slot { outline: 1px dashed rgba(255, 255, 255, .95); outline-offset: -10px; }
.show-slots .video-slot__tag {
  display: block; position: absolute; left: 16px; top: 16px; z-index: 6;
  padding: 6px 9px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff;
  font: 600 11px/1.2 var(--font); letter-spacing: 0;
}

/* ---------- 1. Hero ---------- */
.hero { padding: 6px; }
.hero__frame {
  position: relative; isolation: isolate; overflow: hidden;
  height: calc(100vh - 12px); height: calc(100svh - 12px); min-height: 640px;
  border-radius: var(--r-xl); background: var(--ink); color: #fff;
}
.hero__media, .hero__media img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img { transform: scale(1.04); transition: transform 2.4s var(--quad); }
.is-loaded .hero__media img { transform: none; }
/* Upright screens get the 9:16 cut; on a tablet that's wider than 9:16, so keep its top (the yacht) and trim water below */
@media (orientation: portrait) and (min-width: 768px) { .hero__media img { object-position: 50% 0; } }
/* Trial: the looping wall of the work as the banner, settling in like the photo did */
.hero__loop { object-fit: cover; transform: scale(1.04); transition: transform 2.4s var(--quad); }
.is-loaded .hero__loop { transform: none; }
.hero__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,.12) 22%, rgba(10,10,10,.2) 45%, rgba(10,10,10,.78) 78%, rgba(10,10,10,.9) 100%);
}
.hero__content {
  position: absolute; z-index: 2; left: calc(var(--gutter) - 6px); right: calc(var(--gutter) - 6px); bottom: 34px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); column-gap: 40px;
  grid-template-areas: "word side" "stats ." "lead .";
}
.hero__word {
  grid-area: word; align-self: end;
  margin: 0 0 0 -.05em;
  font-size: clamp(72px, 13.5vw, 200px); line-height: .84; font-weight: 600; letter-spacing: -.065em; color: #fff;
}
.hero__word span { display: block; }
.hero__side { grid-area: side; align-self: end; padding-bottom: .4em; }
.hero__side p { font-size: 22px; line-height: 26.4px; font-weight: 600; letter-spacing: -.04em; color: #fff; }
.hero__cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  font-size: 16px; font-weight: 600; letter-spacing: -.02em; color: #fff; text-decoration: none;
}
.hero__cta svg { transition: transform var(--base); }
.hero__cta:hover svg { transform: translate(.12rem, -.12rem); }
.hero__stats {
  grid-area: stats; display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 40px;
  font-size: 22px; line-height: 26.4px; font-weight: 600; letter-spacing: -.04em; color: #fff;
}
.hero__lead { grid-area: lead; max-width: 528px; margin-top: 40px; color: #fff; font-size: 22px; line-height: 26.4px; letter-spacing: -.04em; }
.hero__lead .muted { color: var(--white-60); }

/* Entrance */
.js [data-enter] { opacity: 0; transform: translateY(40px); }
.is-loaded [data-enter] { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s var(--quad); }
.is-loaded [data-enter="2"] { transition-delay: .15s; }
.is-loaded [data-enter="3"] { transition-delay: .3s; }
.js .hdr { opacity: 0; transition: opacity .6s ease .2s; }
.is-loaded .hdr { opacity: 1; }

/* ---------- 2. Brands ---------- */
.brands .label { margin-bottom: 72px; }
.brands__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
/* Each brand's own logo in ink at 85%, like the type it replaced. The three YOT logos share one circle and wordmark
   so they match exactly (tools/brands/make_logos.py). --h, set on each logo, is its height on a computer. */
.brand {
  height: 135px; border-radius: var(--r-lg); background: var(--card);
  display: flex; align-items: center; justify-content: center; padding: 0 16px;
  transition: transform var(--base), opacity .8s ease;
}
.brand img { display: block; width: auto; height: var(--h); max-width: 100%; object-fit: contain; opacity: .85; transition: opacity var(--base); }
@media (hover: hover) { .js .brand.aos-in:hover { transform: translateY(-2px); } .js .brand.aos-in:hover img { opacity: 1; } }

/* ---------- 3. Work ---------- */
.work__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
/* A card is a column: the info bar grows, so when a long title wraps to two lines its neighbour's bar grows with it
   and the images in a row stay level. Titles wrap rather than truncate. */
.project {
  display: flex; flex-direction: column; position: relative; background: var(--card); border-radius: var(--r-lg); overflow: hidden;
  text-decoration: none; color: inherit; container: project / inline-size;
  transition: transform .2s, box-shadow .2s, opacity .6s ease;
}
.project__info { display: flex; flex: 1 0 auto; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; min-height: 52px; padding: 16px 24px; background: var(--card); }
.project__title { min-width: 0; font-size: 18px; line-height: 20px; font-weight: 600; letter-spacing: -.05em; color: var(--ink); }
.project__year { flex: none; font-size: 12px; line-height: 12px; color: var(--ink-60); letter-spacing: -.02em; }
/* The name and year read first, as on nixtio's cards; what the project is sits quietly at the right */
.project__kind { margin-left: auto; padding-left: 16px; font-size: 14px; line-height: 20px; color: var(--ink-60); letter-spacing: -.02em; text-align: right; }
/* on a narrow card (two columns on a tablet, a phone) it goes underneath instead, so nothing is squeezed */
@container project (max-width: 460px) {
  .project__info { padding: 16px 18px; }
  .project__kind { flex-basis: 100%; margin-left: 0; padding-left: 0; text-align: left; line-height: 18px; }
}
.project__media { position: relative; display: block; flex: none; aspect-ratio: 566 / 429; overflow: hidden; background: #ececec; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--quad); }
.project__media picture { display: contents; }
/* The wide card (Edison, last): both columns at a card's height, on its wide cover. Phones go back to a card's shape. */
.project--wide { grid-column: 1 / -1; }
.project--wide .project__media { aspect-ratio: 1136 / 429; }
/* A card with a hover image: on hover the hover image crossfades in, settling from a slight zoom, while the cover
   drifts in a touch underneath. Quiet on purpose (it replaced a WebGL burn reveal). */
.project__media .project__hover {
  position: absolute; inset: 0; z-index: 1; opacity: 0; transform: scale(1.03); pointer-events: none;
  transition: opacity .7s var(--quad), transform 1.1s var(--quad);
}
.project__pill {
  position: absolute; z-index: 2; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px; border-radius: var(--pill); background: #000; color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: -.02em;
  opacity: 0; transform: translateY(8px); transition: opacity var(--base), transform var(--base);
}
@media (hover: hover) {
  .project:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
  .project:not(.has-hover):hover .project__media img { transform: scale(1.04); }
  .project:hover .project__pill { opacity: 1; transform: none; }
}
@media (hover: hover) and (pointer: fine) {
  .project.has-hover:hover .project__hover { opacity: 1; transform: none; }
  .project.has-hover:hover .project__cover { transform: scale(1.02); }
}
.project:focus-visible .project__pill { opacity: 1; transform: none; }
.project.has-hover:focus-visible .project__hover { opacity: 1; transform: none; }
.work__cta { margin-top: 56px; }

/* ---------- 4. Why me ---------- */
.why__row { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.why__video { width: 284px; max-width: 100%; aspect-ratio: 284 / 577; border-radius: var(--r-xl); }
.why__lead { max-width: 560px; margin: 10px 0 56px; }
.why__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.stat {
  display: flex; flex-direction: column; min-height: 440px; padding: 30px;
  background: var(--card); border-radius: var(--r-xl);
}
.stat__num { font-size: 44px; line-height: 1; font-weight: 500; letter-spacing: -.045em; color: var(--ink); }
.stat__title { margin-top: 26px; font-size: 18px; line-height: 1.1; font-weight: 500; letter-spacing: -.04em; color: var(--ink); max-width: 200px; }
.stat__text { margin-top: auto; font-size: 16px; line-height: 22.4px; color: var(--ink-60); }

/* ---------- 5. Services (dark) ---------- */
.dark { background: var(--ink); color: #fff; }
.services { margin-top: var(--section-gap); padding: 190px 0; }
.acc { border-top: 0; }
.acc-item {
  position: relative;
  display: grid; grid-template-columns: var(--label-col) minmax(0, 360px) minmax(0, 1fr) 40px;
  padding: 28.8px 0 14px; border-bottom: 1px solid var(--line-dark);
  transition: padding .6s ease-in-out;
}
.acc-item.is-open { padding-bottom: 40px; }
.acc-item__num { font-size: 16px; line-height: 40px; color: var(--white-60); }
.acc-item__title { font-size: 22px; line-height: 26.4px; font-weight: 600; letter-spacing: -.04em; color: #fff; }
.acc-btn {
  display: block; width: 100%; padding: 7px 0; border: 0; background: none; text-align: left; cursor: pointer;
  font: inherit; color: inherit; letter-spacing: inherit;
}
/* the whole header row is clickable */
.acc-item .acc-btn::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 84px; }
.acc-panel {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows .6s ease-in-out, visibility 0s linear .6s;
}
.acc-panel > div { overflow: hidden; min-height: 0; }
[data-acc-item].is-open .acc-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .6s ease-in-out; }
.acc-item__desc { padding-top: 10px; font-size: 16px; line-height: 22.4px; color: var(--white-60); max-width: 360px; }
.acc-item__cats { padding: 0 39px 0 47px; }
.acc-item__catlabel { padding-top: 2px; font-size: 12px; color: var(--white-60); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips li {
  padding: 7px 12px; border-radius: var(--pill); background: #fff; color: #000;
  font-size: 12px; line-height: 14px; font-weight: 600; letter-spacing: -.02em;
}
.acc-item__toggle {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .9);
  transition: background-color var(--base), border-color var(--base); pointer-events: none;
}
.acc-item__toggle::before, .acc-item__toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px;
  background: #fff; border-radius: 2px; transition: transform var(--base), background-color var(--base);
}
.acc-item__toggle::after { transform: rotate(90deg); }
.acc-item.is-open .acc-item__toggle::after { transform: rotate(0deg); }
@media (hover: hover) {
  .acc-item:hover .acc-item__toggle { background: #fff; }
  .acc-item:hover .acc-item__toggle::before, .acc-item:hover .acc-item__toggle::after { background: var(--ink); }
}
.services__cta { margin-top: 56px; }

/* ---------- 6. How I work ---------- */
.how__intro { margin-top: 24px; max-width: 360px; font-size: 16px; line-height: 22.4px; color: var(--ink-60); }
.how__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.how-card {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 274px; padding: 40px 40px 34px; background: var(--card); border-radius: var(--r-xl);
}
.how-card svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.how-card h3 { font-size: 31px; line-height: 1.07; font-weight: 600; letter-spacing: -.055em; color: var(--ink); text-wrap: balance; }
.showreel { margin-top: 8px; aspect-ratio: 16 / 9; border-radius: var(--r-xl); }
.mute {
  position: absolute; left: 20px; bottom: 20px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.mute:hover { transform: scale(1.05); }
.mute svg, .hello__btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mute__on { display: none !important; }
[aria-pressed="true"] .mute__on { display: block !important; }
[aria-pressed="true"] .mute__off { display: none !important; }

/* ---------- 7. Experience ---------- */
.exp__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.exp {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 600px; padding: 30px; background: var(--card); border-radius: var(--r-xl);
  transition: box-shadow .2s, opacity .8s ease, transform .8s ease;
}
@media (hover: hover) { .exp:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .15); } }
.exp__intro { font-size: 16px; line-height: 22.4px; color: var(--ink-60); }
.exp__foot { display: flex; flex-direction: column; gap: 22px; }
.exp__thumbs { display: flex; }
.exp__thumbs li { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; background: var(--ink); }
.exp__thumbs li + li { margin-left: -9px; }
.exp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.exp__thumbs span { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: 12px; font-weight: 600; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.arrow-link svg { transition: transform var(--base); }
.arrow-link:hover svg { transform: translate(.12rem, -.12rem); }
.exp__badge {
  display: grid; place-items: center; width: 49px; height: 49px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: -.02em;
}
.exp__name { margin-top: 12px; font-size: 18px; line-height: 1.2; font-weight: 600; letter-spacing: -.05em; color: var(--ink); }
.exp__role { margin-top: 4px; font-size: 12px; line-height: 1.3; color: var(--ink-60); letter-spacing: -.02em; }
.exp__statement { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.045em; color: var(--ink); }

/* ---------- 8. About me ---------- */
.me__box {
  display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 20px;
  padding: 10px; background: var(--card); border-radius: var(--r-xl);
}
.me__text { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 60px 20px 50px 60px; }
.me__bottom { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 36px; align-items: end; }
.me__work h3 { font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -.04em; color: var(--ink); }
.me__work p { margin: 8px 0 16px; font-size: 14px; line-height: 1.4; color: var(--ink-60); }
.me__para { font-size: 22px; line-height: 1.22; font-weight: 500; letter-spacing: -.04em; color: var(--ink); }
.me__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
/* The tiles get narrow on small phones (about 114px at 320px wide), so the caption's padding and size scale with the
   tile (container units) and a long word like "Photography" still fits */
.tile { position: relative; container-type: inline-size; aspect-ratio: 248 / 301; border-radius: var(--r-lg); overflow: hidden; background: #ddd; outline-offset: -3px; }
.tile img, .tile__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile img { transition: transform .6s var(--quad); }
.tile__overlay {
  position: absolute; inset: auto 0 0 0; z-index: 4; padding: 60px clamp(12px, 8cqi, 20px) clamp(12px, 8cqi, 20px); color: #fff;
  /* darker under the words, so a caption stays readable over bright sky or lettering in the photo */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .62) 45%, rgba(0, 0, 0, .86));
  transform: translateY(100%); transition: transform .3s ease-in-out;
}
.tile__overlay h3 { font-size: clamp(15px, 11cqi, 18px); line-height: 1.2; font-weight: 600; letter-spacing: -.04em; }
.tile__overlay p { margin-top: 4px; font-size: clamp(12px, 8.5cqi, 14px); line-height: 1.3; color: var(--white-60); }
@media (hover: hover) {
  .tile:hover .tile__overlay { transform: none; }
  .tile:hover img { transform: scale(1.04); }
}
.tile:focus-visible .tile__overlay, .tile:focus-within .tile__overlay { transform: none; }
@media (hover: none) { .tile__overlay { transform: none; } }

/* ---------- 9. FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 562px); gap: 40px; align-items: start; }
.faq__intro p { margin-top: 28px; max-width: 380px; font-size: 16px; line-height: 22.4px; color: var(--ink-60); }
.faq__items { display: flex; flex-direction: column; gap: 4px; }
.faq-item { background: var(--card); border-radius: var(--r-lg); padding: 0 28px; }
.faq-item h3 { font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -.035em; color: var(--ink); }
.faq-item__q { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; }
.faq-item__icon {
  position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink);
  transition: transform var(--base);
}
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.6px; margin: -.8px 0 0 -4.5px;
  background: #fff; border-radius: 2px;
}
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item .acc-panel p { padding: 0 34px 26px 0; font-size: 16px; line-height: 22.4px; color: var(--ink-60); }
.faq-item .acc-panel a { color: var(--ink); }

/* ---------- 10. Contact footer (dark) ---------- */
.footer { margin-top: var(--section-gap); padding: 190px 0 36px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 60px; align-items: start; }
.footer__display { color: #fff; }
.footer__sub { margin-top: 48px; max-width: 520px; font-size: 30px; line-height: 1.2; font-weight: 500; letter-spacing: -.045em; color: #fff; }
.footer__rule { max-width: 520px; height: 1px; margin: 44px 0 36px; border: 0; background: var(--line-dark); }
.footer__feats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 520px; }
.feat h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.045em; color: #fff; }
.feat svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.feat p { margin-top: 10px; font-size: 12px; line-height: 1.4; color: var(--white-60); letter-spacing: -.02em; }

.form { padding: 40px; background: var(--card); border-radius: var(--r-xl); color: var(--ink); }
.form h3 { margin-bottom: 30px; font-size: 28px; line-height: 1.1; font-weight: 600; letter-spacing: -.05em; color: var(--ink); }
.form h3 .muted { color: var(--ink-60); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.field input, .field textarea {
  width: 100%; border: 0; border-radius: var(--r-lg); padding: 12px 16px; background: var(--bg); color: var(--ink);
  font: 600 16px/18px var(--font); letter-spacing: -.02em; outline: none; resize: vertical;
  transition: background-color var(--base), color var(--base), box-shadow var(--base);
}
.field textarea { min-height: 96px; line-height: 1.35; }
.field input::placeholder, .field textarea::placeholder { color: rgba(10, 10, 10, .32); }
.field input:focus, .field textarea:focus { background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.field input:user-invalid, .field textarea:user-invalid { box-shadow: 0 0 0 1px #c0392b; }
.form__submit { width: 100%; margin-top: 10px; }
.form__status { min-height: 1.4em; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form__note { font-size: 12px; color: var(--ink-60); letter-spacing: -.02em; }

.socials { display: grid; grid-template-columns: repeat(4, max-content); gap: 18px 56px; margin: 120px 0 0 var(--label-col); }
.social { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 600; letter-spacing: -.045em; color: #fff; text-decoration: none; }
.social__icon { position: relative; width: 14px; height: 14px; overflow: hidden; perspective: 60px; }
.social__icon svg {
  position: absolute; inset: 0; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; opacity: .6; transition: transform .3s var(--quad);
}
.social__icon svg + svg { transform: translateY(-100%) rotateX(90deg); }
@media (hover: hover) {
  .social:hover .social__icon svg:first-child { transform: translateY(100%) rotateX(-90deg); }
  .social:hover .social__icon svg + svg { transform: none; }
}
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--line-dark); font-size: 16px; color: #fff;
}
.footer__top { color: #fff; text-decoration: none; }
.footer__top:hover { color: var(--white-60); }

/* ---------- Project overlay ---------- */
.ov { position: fixed; inset: 0; z-index: 1050; visibility: hidden; transition: visibility 0s linear .6s; }
.ov.is-open { visibility: visible; transition: none; }
.ov__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, .55); opacity: 0; transition: opacity .6s ease; }
.ov.is-open .ov__backdrop { opacity: 1; }
.ov__panel {
  position: absolute; inset: 12px 6px 0; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: var(--r-xl) var(--r-xl) 0 0; outline: none;
  transform: translateY(102%); transition: transform .6s var(--sheet);
}
.ov.is-open .ov__panel { transform: none; }
.ov__bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: flex-end; padding: 20px 22px 0; height: 0; overflow: visible; }
.ov__close {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12); transition: transform var(--base), background-color var(--base);
}
.ov__close:hover { transform: rotate(90deg); }
.ov__close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.ov__inner { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 120px 0 140px; }
/* The project page, after nixtio's case studies (Beau, 24 Oct): a big two-tone title, a hero picture the full width,
   an introduction with the facts in hairline rows, the work, then the next projects under a giant heading */
.ovh__label { margin-bottom: 20px; }
.ovh__title { max-width: 1100px; font-size: clamp(48px, 7vw, 112px); line-height: .98; font-weight: 600; letter-spacing: -.055em; color: var(--ink); text-wrap: balance; }
.ovh__title .muted { display: block; color: var(--ink-60); }
.ovh__hero { margin: 64px 0 0; aspect-ratio: var(--r, 16 / 9); border-radius: var(--r-xl); overflow: hidden; background: #e9e9e9; }
.ovh__hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ovs { margin-top: 128px; }
.ovs__lead { max-width: 720px; font-size: 26px; line-height: 1.24; font-weight: 500; letter-spacing: -.045em; color: var(--ink); }
.ovs__facts { max-width: 720px; margin-top: 56px; }
.ovs__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.ovs__facts div:last-child { border-bottom: 1px solid var(--line); }
.ovs__facts dt { font-size: 12px; color: var(--ink-60); }
.ovs__facts dd { font-size: 15px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); text-align: right; }
/* The work (built in main.js): rows of frames, full width or side by side, that share one height. Each frame is filled
   with its image's own edge colour (--bg), so a render on a flat colour reads as one surface, never a letterbox. */
.ov__gallery { margin-top: 128px; display: flex; flex-direction: column; gap: 4px; }
.ovg { display: flex; gap: 4px; }
.ovg__frame { position: relative; flex: var(--r) 1 0%; min-width: 0; aspect-ratio: var(--r); border-radius: var(--r-xl); overflow: hidden; background: var(--bg); }
.ovg__frame img, .ovg__frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Gallery videos (main.js): muted loops sized like images, the poster covering until the file plays */
.ovg__frame video { cursor: pointer; }
.ovg__frame video:focus-visible { outline-offset: -4px; }
.ovs--statement { margin: 124px 0 120px; }
.ovs__statement { max-width: 760px; font-size: 30px; line-height: 1.2; font-weight: 500; letter-spacing: -.045em; color: var(--ink); }
.ovs__more { max-width: 560px; margin-top: 24px; font-size: 16px; line-height: 22.4px; color: var(--ink-60); }
.ovn { margin-top: 160px; }
.ov__next { display: block; padding: 0 12px 0 0; border: 0; background: none; text-align: left; cursor: pointer; }   /* room for the 12px hover nudge */
.ovn__title { display: block; font-size: clamp(56px, 10vw, 148px); line-height: 1; font-weight: 600; letter-spacing: -.055em; color: var(--ink); transition: transform .5s var(--quad); }
@media (hover: hover) { .ov__next:hover .ovn__title { transform: translateX(12px); } }
.ovn__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 48px; }

/* ---------- Hello bubble ---------- */
.hello {
  position: fixed; right: 28px; bottom: 28px; z-index: 1020; width: 108px; height: 148px;
  border-radius: var(--r-lg); overflow: hidden; background: #1a1a1a; box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease, width .3s linear, height .3s linear;
}
.hello.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.hello.is-expanded { width: 298px; height: 408px; }
.hello__video { position: absolute; inset: 0; }
.hello__open { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer; }
.hello__btn {
  position: absolute; top: 8px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity var(--base), transform .2s;
}
.hello__btn svg { width: 14px; height: 14px; }
.hello__close { right: 8px; }
.hello__mute { left: 8px; }
.hello:hover .hello__btn, .hello:focus-within .hello__btn, .hello.is-expanded .hello__btn { opacity: 1; }
.hello__btn:hover { transform: scale(1.06); }
.ov-open .hello, .menu-open .hello { opacity: 0; pointer-events: none; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (min-width: 1500px) { :root { --max: 1448px; } }
@media (max-width: 767px) { :root { --pad: 24px; } }

@media (max-width: 1365px) {
  :root { --label-col: 230px; }
  .acc-item { grid-template-columns: var(--label-col) minmax(0, 300px) minmax(0, 1fr) 40px; }
  .acc-item__cats { padding: 0 24px 0 32px; }
  .how-card { padding: 30px; }
  .how-card h3 { font-size: 26px; }
  .exp__statement { font-size: 20px; }
  .me__box { grid-template-columns: minmax(0, 1fr) 420px; }
  .me__text { padding: 44px 10px 40px 40px; }
  .me__bottom { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .why__row { grid-template-columns: minmax(0, 284px) minmax(0, 1fr); gap: 48px; }
  .exp__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exp { min-height: 420px; }
  .faq__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
  .footer__feats { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 1100px) {
  .me__box { grid-template-columns: minmax(0, 1fr); }
  .me__text { padding: 40px 30px 30px; }
  .me__bottom { grid-template-columns: 210px minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 1023px) {
  :root { --head-gap: 56px; --section-gap: 120px; }
  .hdr { padding: 20px 20px 0 20px; }
  .hdr__navbox { display: none; }
  .hdr__menu { display: block; margin-top: 0; }
  .hdr__cta { margin-top: 2px; margin-left: auto; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .head .label { margin-bottom: 16px; }
  .h2 { font-size: 44px; }
  .display { font-size: 112px; }
  .hero__content { grid-template-columns: minmax(0, 1fr); grid-template-areas: "word" "stats" "lead" "side"; }
  .hero__side { padding: 0; margin-top: 28px; }
  .hero__side p { max-width: 360px; }
  .why__row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .why__video { width: min(284px, 70vw); }
  .acc-item { grid-template-columns: 64px minmax(0, 1fr) 40px; }
  .acc-item__cats { grid-column: 2; padding: 0; }
  .acc-item__toggle { grid-column: 3; grid-row: 1; }
  .acc-item.is-open .acc-item__cats > div { padding-top: 20px; }
  .services__cta > span { display: none; }   /* only the empty grid spacer: a plain `span` also hid the button's label */
  .how__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exp__cards {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .exp__cards::-webkit-scrollbar { display: none; }
  .exp { flex: 0 0 min(300px, 78vw); min-height: 520px; scroll-snap-align: start; }
  .me__box { grid-template-columns: minmax(0, 1fr); }
  .me__text { padding: 34px 24px 24px; }
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .socials { margin-left: 0; margin-top: 80px; }
  .ovs > .label { margin-bottom: 16px; }
}

@media (max-width: 767px) {
  :root { --head-gap: 40px; --section-gap: 96px; }
  .hdr__cta { display: none; }
  .hdr__menu { margin-left: auto; }
  .h2 { font-size: 36px; }
  .display { font-size: 88px; }
  .lead, .hero__lead, .hero__stats, .hero__side p { font-size: 18px; line-height: 1.25; }
  .hero__content { bottom: 24px; left: 18px; right: 18px; }
  .hero__stats { gap: 6px 22px; margin-top: 28px; }
  .hero__lead { margin-top: 24px; }
  .hero__frame { min-height: 600px; }
  .brands .label { margin-bottom: 32px; }
  .brands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand { height: 96px; }
  .brand img { height: calc(var(--h) * .7); }
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .project--wide .project__media { aspect-ratio: 566 / 429; }
  .why__cards { grid-template-columns: minmax(0, 1fr); }
  .stat { min-height: 300px; }
  .services { padding: 120px 0; }
  .acc-item { grid-template-columns: 44px minmax(0, 1fr) 40px; }
  .acc-item__title { font-size: 20px; }
  .how-card { min-height: 190px; padding: 22px; border-radius: var(--r-lg); }
  .how-card h3 { font-size: 21px; }
  .how-card svg { width: 28px; height: 28px; }
  .showreel { border-radius: var(--r-lg); }
  .me__bottom { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .me__para { font-size: 20px; }
  .faq-item { padding: 0 20px; }
  .faq-item h3 { font-size: 16px; }
  .footer { padding: 120px 0 28px; }
  .footer__sub { font-size: 24px; margin-top: 32px; }
  .me__bottom { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 26px 22px; }
  .socials { grid-template-columns: repeat(2, max-content); gap: 16px 40px; }
  .footer__bottom { font-size: 14px; }
  .hello { display: none; }
  .ov__panel { inset: 8px 0 0; }
  .ov__inner { padding-top: 84px; }
  .ovh__hero { margin-top: 36px; border-radius: var(--r-lg); }
  .ovs { margin-top: 72px; }
  .ovs__lead { font-size: 22px; }
  .ov__gallery { margin-top: 72px; }
  /* Phones: one frame at a time, full width; a tall one is capped so it fits on screen (a row of three Stories would
     otherwise take three screens) */
  .ovg { flex-direction: column; }
  .ovg__frame { flex: none; width: min(100%, calc(70svh * var(--r))); align-self: center; border-radius: var(--r-lg); }
  .ovs--statement { margin: 72px 0; }
  .ovs__statement { font-size: 24px; }
  .ovn { margin-top: 96px; }
  .ovn__cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js [data-aos], .js [data-enter] { opacity: 1 !important; transform: none !important; }
  .hero__media img { transform: none; }
  .ov__panel { transform: none; opacity: 0; }
  .ov.is-open .ov__panel { opacity: 1; }
  /* with reduced motion the hover image only fades, with no zoom */
  .project__media .project__hover, .project.has-hover:hover .project__cover { transform: none; }
  .project__media .project__hover { transition: opacity .4s ease !important; }
}

