/* galen.ca — rebuilt from the Wix site, October 2026.
 * Palette, type scale and section shapes match the original; layout is
 * fluid instead of Wix's fixed 980px stage. */

@font-face {
  font-family: 'Graphit';
  src: url('/assets/fonts/graphit-black.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Graphit';
  src: url('/assets/fonts/graphit-black-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #010221;
  --cream: #e9e8dd;
  --orange: #c43302;
  --gold: #edaa25;
  --teal: #0a7373;
  --gray: #75757f;
  --slate: #3b3c50;
  --sage: #b7bf99;
  --line: rgba(233, 232, 221, 0.85);

  --display: 'Graphit', 'Arial Black', 'Helvetica Neue', sans-serif;
  --body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 4.2vw, 56px);
  --header-h: 99px;
  --h1: clamp(40px, 5.5vw, 70px);
  --h2: clamp(34px, 4.7vw, 60px);
  --h2-tight: -0.05em;
  --h3: clamp(22px, 2.35vw, 30px);
  --lead: clamp(16px, 1.4vw, 18px);
  --shape-lg: clamp(56px, 10.4vw, 200px);
  --shape: clamp(44px, 7.8vw, 150px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg, iframe { display: block; max-width: 100%; }
main { display: block; overflow-x: clip; } /* reveal-slide transforms must never widen the page */
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
strong, b { font-weight: 700; }
button { font: inherit; color: inherit; }

.skip-link {
  position: absolute; left: 50%; top: -120px; transform: translateX(-50%); white-space: nowrap;
  background: var(--cream); color: var(--navy); padding: 8px 16px; z-index: 100;
  border-radius: 0 0 6px 6px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- display type ---------- */

.display { font-family: var(--display); font-weight: 900; line-height: 0.9; letter-spacing: var(--h2-tight); }
.display--italic { font-style: italic; }
.h1 { font-family: var(--display); font-size: var(--h1); line-height: 1.15; }
.h2 { font-family: var(--display); font-size: var(--h2); line-height: 0.9; letter-spacing: var(--h2-tight); }
.h2 > span { display: block; }
.h2--loose { letter-spacing: normal; line-height: 1.15; }
.h3 { font-family: var(--display); font-style: italic; font-size: var(--h3); line-height: 1.4; }
.kicker { font-family: var(--display); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.25; text-transform: uppercase; }
.kicker--case { text-transform: none; }

.c-orange { color: var(--orange); }
.c-gold { color: var(--gold); }
.c-cream { color: var(--cream); }
.c-gray { color: var(--gray); }
.c-slate { color: var(--slate); }
.c-teal { color: var(--teal); }
.c-navy { color: var(--navy); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--navy);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
}
.logo {
  font-family: var(--display); font-style: italic; font-size: 45px; line-height: 1;
  color: var(--orange); text-decoration: none; letter-spacing: -0.01em;
  padding-top: 4px;
}
.nav { display: flex; align-items: center; }
.nav__list { list-style: none; display: flex; gap: 0 30px; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: block; padding: 8px 0; text-decoration: none; text-transform: uppercase;
  font-size: 15px; line-height: 21px; color: var(--cream); transition: color .2s;
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__item.is-section > .nav__link { color: var(--sage); }
.nav__sub {
  list-style: none; margin: 0; padding: 6px 0;
  position: absolute; right: -14px; top: 100%; min-width: 170px;
  background: var(--navy); border: 1px solid rgba(233, 232, 221, 0.15);
  text-align: right;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 5px 14px; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { color: var(--sage); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--cream); margin: 6px 0; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .logo { font-size: 34px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy);
    display: block; padding: 28px var(--gutter);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; overflow-y: auto;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; gap: 8px; }
  .nav__link { font-family: var(--display); font-style: italic; font-size: 34px; line-height: 1.3; text-transform: none; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; text-align: left; padding: 0 0 8px 2px; background: none;
  }
  .nav__sub a { padding: 4px 0; font-size: 17px; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px var(--gutter) 22px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 18px 24px;
  font-size: 15px; line-height: 24px; text-transform: uppercase;
}
.site-footer__center { grid-column: 2; text-align: center; }
.site-footer__right { grid-column: 3; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 32px; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--sage); }
.back-to-top { display: inline-flex; align-items: center; gap: 22px; text-decoration: none !important; }
.back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer__center, .site-footer__right { grid-column: 1; text-align: center; align-items: center; }
}

/* ---------- section shapes ----------
 * Each shape sits at the bottom of the upper section, painted in the lower
 * section's colour (the same trick Wix's shape dividers use). */

.has-shape { position: relative; }
.shape {
  position: absolute; left: 0; right: 0; bottom: -1px; height: var(--shape);
  background: var(--to, var(--cream)); pointer-events: none; z-index: 1;
}
.shape--slant { height: var(--shape-lg); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.shape--notch { clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 100%, 0 100%); }
.shape--peak { clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.pad-shape-lg { padding-bottom: calc(var(--shape-lg) + 20px) !important; }
.pad-shape { padding-bottom: calc(var(--shape) + 30px) !important; }

/* ---------- generic layout helpers ---------- */

.section { position: relative; padding: clamp(48px, 6vw, 80px) var(--gutter); }
.section--cream { background: var(--cream); color: var(--navy); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--slate { background: var(--slate); color: var(--cream); }
.center { text-align: center; }
.measure { max-width: 720px; margin-left: auto; margin-right: auto; }
.measure-wide { max-width: 880px; margin-left: auto; margin-right: auto; }
.lead { font-size: var(--lead); line-height: 1.5; }
.lead + .lead { margin-top: 1.5em; }
.stack > * + * { margin-top: 28px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.bg-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.on-top { position: relative; z-index: 2; }

/* ---------- media: shadows, frames, video facades ---------- */

.shadowed { box-shadow: 0 0 22px rgba(0, 0, 0, 0.55); }
.framed { border: 3px solid var(--cream); }
.rounded { border-radius: 6px; overflow: hidden; }

.video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  background: #000; overflow: hidden; cursor: pointer; border: 0; padding: 0;
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.video:hover img { transform: scale(1.03); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
  pointer-events: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.video__play .bg { fill: #212121; fill-opacity: .82; transition: fill .2s, fill-opacity .2s; }
.video:hover .video__play .bg, .video:focus-visible .video__play .bg { fill: #f00; fill-opacity: 1; }
.video.is-playing { cursor: default; }

/* lightbox (home demo reel) */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(1, 2, 33, 0.92);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox[hidden] { display: none; }
.lightbox__inner { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; position: relative; }
.lightbox__inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__close {
  position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; background: none;
  cursor: pointer; color: var(--cream);
}
.lightbox__close svg { width: 28px; height: 28px; margin: auto; }

/* round arrow button (cream ring, gold arrow) */
.ring-arrow { display: inline-block; width: 61px; height: 50px; flex: none; }
.ring-arrow circle { fill: none; stroke: var(--cream); stroke-width: 1.5; }
.ring-arrow path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
a:hover .ring-arrow path { transform: translateX(4px); }
.ring-arrow--left { transform: scaleX(-1); }

/* ---------- carousels ---------- */

.carousel { position: relative; }
.carousel__track {
  display: flex; gap: var(--gap, 12px); overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { flex: none; scroll-snap-align: start; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 74px; height: 74px; border: 0; border-radius: 8px; cursor: pointer;
  background: rgba(233, 232, 221, 0.75); color: var(--navy);
  display: grid; place-items: center; transition: background .2s, opacity .2s;
}
.carousel__btn:hover { background: var(--cream); }
.carousel__btn[disabled] { opacity: 0; pointer-events: none; }
.carousel__btn svg { width: 34px; height: 34px; }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }
.carousel--plain .carousel__btn { background: none; width: 56px; height: 56px; color: var(--navy); }
.carousel--plain .carousel__btn:hover { background: rgba(233, 232, 221, 0.6); }
@media (max-width: 640px) { .carousel__btn { width: 48px; height: 48px; } .carousel__btn svg { width: 24px; height: 24px; } }

/* ---------- reveal-on-scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-slide { opacity: 0; transform: translateX(60px); transition: opacity 1s ease, transform 1s ease; }
.js .reveal-slide.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-slide { opacity: 1; transform: none; transition: none; }
}

/* =================================================================
 * HOME
 * ================================================================= */

.home-hero {
  position: relative; height: clamp(440px, 57.4vw, calc(100svh - var(--header-h) - 40px));
  min-height: 440px; overflow: hidden; background: #111;
}
.home-hero video, .home-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero__title {
  position: absolute; left: 50%; bottom: clamp(28px, 2.3vw, 30px); transform: translateX(-50%);
  width: min(600px, calc(100% - 40px)); margin: 0; text-align: center;
  font-family: var(--display); font-size: clamp(24px, 2.65vw, 34px); line-height: 1.2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.demo-reel {
  display: block; position: relative; width: min(508px, calc(100% - 40px)); margin: 18px auto 0;
  aspect-ratio: 506 / 325; border: 1px solid var(--cream); border-radius: 8px; overflow: hidden;
  cursor: pointer; padding: 0; background: #000;
}
.demo-reel img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.demo-reel:hover img { transform: scale(1.04); }
.demo-reel__play { position: absolute; left: 50%; bottom: 9%; width: 62px; height: 62px; transform: translateX(-50%); }
.demo-reel__play circle { fill: none; stroke: var(--orange); stroke-width: 4; }
.demo-reel__play path { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linejoin: round; }
.demo-reel:hover .demo-reel__play circle, .demo-reel:hover .demo-reel__play path { stroke: var(--gold); }

.projects-title {
  padding: clamp(40px, 4vw, 50px) var(--gutter) 28px;
  font-family: var(--display); font-style: italic; font-size: clamp(34px, 3.9vw, 50px); line-height: 1.15;
  text-transform: uppercase; border-bottom: 1px solid var(--line);
}

.project {
  display: grid; grid-template-columns: clamp(64px, 20vw, 256px) 1fr;
  border-bottom: 1px solid var(--line); padding: 49px 0 82px;
  overflow: hidden;
}
.project__aside { position: relative; display: flex; flex-direction: column; align-items: center; padding: 40px clamp(0px, 6vw, 76px) 0 0; }
.project__num {
  font-family: var(--display); font-size: clamp(36px, 4.7vw, 60px); line-height: 0.9; letter-spacing: -0.05em;
  color: var(--orange);
}
.project__label {
  margin-top: clamp(120px, 20vw, 260px);
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 15px; letter-spacing: 0.01em; white-space: nowrap;
}
.project__media {
  display: block; aspect-ratio: 1024 / 660; width: calc(100% + 1px); max-width: none;
  border-radius: 12px 0 0 12px; overflow: hidden; background: #0a0b26;
}
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.project__media:hover img { transform: scale(1.03); }
.project__media--bl img { object-position: left bottom; }
.project__body { padding: 38px 0 0 25px; max-width: 640px; }
.project__title {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); text-decoration: none;
  font-family: var(--display); font-style: italic; font-size: clamp(38px, 4.7vw, 60px); line-height: 0.9;
  letter-spacing: -0.05em; color: var(--orange); text-transform: uppercase;
}
.project__title span { padding: 0.08em 0.06em 0.05em 0; }
.project__title:hover { color: #df4710; }
.project__role { margin-top: 26px; }
.project__desc { margin-top: 12px; line-height: 24px; max-width: 590px; }
.home-spacer { height: 176px; border-bottom: 1px solid var(--line); }

@media (max-width: 760px) {
  .project { grid-template-columns: 56px 1fr; padding: 32px 0 52px; }
  .project__aside { padding: 6px 0 0 4px; }
  .project__label { margin-top: 40px; font-size: 13px; }
  .project__body { padding: 26px var(--gutter) 0 0; }
  .project__title .ring-arrow { width: 48px; height: 40px; }
  .home-spacer { height: 64px; }
}

/* =================================================================
 * PORTFOLIO
 * ================================================================= */

.page-title { padding: 34px var(--gutter) 40px; border-bottom: 1px solid var(--line); }
.page-title .h1 { line-height: 1.2; }

.portfolio-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 74px 40px;
  padding: 56px 40px 60px; border-bottom: 1px solid var(--line);
}
.card { text-decoration: none; display: block; }
.card__media { aspect-ratio: 580 / 326; border-radius: 16px; overflow: hidden; background: #0a0b26; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__title { margin: 22px 5px 0; transition: color .2s; }
.card:hover .card__title { color: var(--gold); }
.card__desc { margin: 12px 5px 0; line-height: 21px; max-width: 560px; }
@media (max-width: 760px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 48px; padding: 36px var(--gutter) 48px; }
}

/* =================================================================
 * ABOUT
 * ================================================================= */

.about-head { padding: 34px var(--gutter) 0; }
.about-head .h1 { color: var(--orange); line-height: 1.2; }
.about-head .kicker { margin-top: 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.about-head__rule { margin: 8px 40px 0; border: 0; border-top: 1px solid var(--line); }
.icon-linkedin { width: 39px; height: 39px; flex: none; border-radius: 3px; }

.about-me { display: grid; grid-template-columns: 1fr minmax(260px, 40%); align-items: start; gap: 40px; min-height: 560px; }
.about-me__text { padding: 46px 0 60px clamp(20px, 10vw, 128px); max-width: 810px; }
.about-me__text .kicker { margin-bottom: 30px; }
.about-me__text p { font-size: var(--lead); line-height: 1.5; margin-bottom: 1.5em; }
.about-me__photo { margin-top: 4px; align-self: start; justify-self: end; width: min(513px, 100%); aspect-ratio: 1; overflow: hidden; clip-path: polygon(20.5% 0, 100% 0, 100% 100%, 0 100%); }
.about-me__photo img { width: 100%; height: 100%; object-fit: cover; }

.about-links {
  display: grid; grid-template-columns: 750px 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.about-links__col { padding: 26px 0 70px 95px; }
.about-links__col + .about-links__col { border-left: 1px solid var(--line); padding: 50px 40px 70px 25px; }
.about-links a { text-decoration: none; }
.about-links .h3 a:hover { color: var(--gold); }
.about-links__li { display: flex; align-items: center; gap: 12px; margin-top: 54px; }
.about-links .kicker { margin-bottom: 18px; }
.about-links ul { list-style: none; margin: 0; padding: 0; line-height: 24px; max-width: 330px; }

@media (max-width: 1100px) { .about-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .about-me { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .about-me__text { padding: 36px var(--gutter) 30px; }
  .about-me__photo { width: 86%; }
  .about-links { grid-template-columns: 1fr; }
  .about-links__col { padding: 28px var(--gutter) 34px; }
  .about-links__col + .about-links__col { border-left: 0; border-top: 1px solid var(--line); padding: 28px var(--gutter) 40px; }
  .about-links__li { margin-top: 26px; }
  .about-head__rule { margin: 8px var(--gutter) 0; }
}

.contact { padding: 80px var(--gutter) 64px; border-bottom: 1px solid var(--line); }
.contact .h2 { font-style: italic; letter-spacing: -0.02em; line-height: 1.1; text-transform: uppercase; }
.contact__intro { max-width: 860px; margin: 28px auto 0; font-family: var(--display); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.2; text-transform: uppercase; }
.form { position: relative; max-width: 916px; margin: 52px auto 0; display: grid; gap: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; }
.field input, .field textarea {
  width: 100%; background: transparent; color: var(--cream); border: 0; border-bottom: 1px solid var(--cream);
  padding: 6px 2px 8px; font: inherit; font-size: 15px; border-radius: 0;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn-pill {
  width: 100%; height: 42px; border: 1px solid var(--cream); border-radius: 999px; background: transparent;
  color: var(--cream); font-size: 15px; cursor: pointer; transition: background .2s, color .2s;
}
.btn-pill:hover { background: var(--cream); color: var(--navy); }
.btn-pill[disabled] { opacity: .6; cursor: progress; }
.form__status { min-height: 1.6em; text-align: center; font-size: 15px; }
.form__status.is-ok { color: var(--sage); }
.form__status.is-err { color: #ff8a65; }

/* =================================================================
 * CASE STUDIES (shared)
 * ================================================================= */

.cs-hero { position: relative; overflow: hidden; }
.cs-hero > img { width: 100%; height: clamp(320px, 69.7vw, 892px); object-fit: cover; }
.cs-hero--video { height: clamp(360px, 60.7vw, 777px); background: #000; }
.cs-hero--video video, .cs-hero--video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 37%; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.92)); }
.cs-hero__logo { position: absolute; left: 50%; bottom: 7%; width: min(600px, 74vw); transform: translateX(-50%); z-index: 2; }

.block { padding: clamp(36px, 4vw, 52px) var(--gutter) clamp(44px, 5vw, 64px); }
.block .h2 { margin-bottom: 24px; }
.block .lead { max-width: 720px; margin-left: auto; margin-right: auto; }
.block .resp { margin-top: 1.5em; }
.block__media { margin: 40px auto 0; }
.w-730 { max-width: 736px; }
.w-873 { max-width: 873px; }
.w-590 { max-width: 590px; }
.block .narrow { max-width: 580px; }
.has-shape + .block, .has-shape + .section { padding-top: 18px; }
.block .h2 + .lead { margin-top: 0; }
.w-680 { max-width: 680px; }
.w-620 { max-width: 622px; }
.w-910 { max-width: 911px; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 56px); align-items: center;
  max-width: 1140px; margin: 0 auto;
}
.split--media-right > :first-child { order: 2; }
.split__text { text-align: center; }
.split__text .lead { max-width: 440px; margin-left: auto; margin-right: auto; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--media-right > :first-child { order: 0; }
}

.stats { margin-top: 56px; font-family: var(--display); font-size: clamp(30px, 3.45vw, 44px); line-height: 1.36; letter-spacing: -0.05em; color: var(--orange); }

.project-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 34px 49px 34px; background: var(--navy);
}
.project-nav a { display: inline-flex; align-items: center; gap: 24px; text-decoration: none; font-family: var(--display); font-style: italic; font-size: var(--h3); line-height: 1.4; text-transform: uppercase; }
.project-nav a:hover { color: var(--gold); }
.project-nav .ring-arrow { width: 54px; height: 44px; }
.project-nav--tall { padding-bottom: 150px; }
@media (max-width: 640px) {
  .project-nav { padding: 28px var(--gutter); }
  .project-nav--tall { padding-bottom: 60px; }
  .project-nav a { gap: 14px; font-size: 18px; }
}

/* =================================================================
 * NIGHTINGALE
 * ================================================================= */

/* Focal framing (site.js): backgrounds with data-subject are sized and shifted per window
 * width so the character stays left of the text; the section colour shows where they fade. */
img[data-subject].is-framed { inset: auto; max-width: none; object-fit: fill; }
img[data-subject].is-faded {
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
img[data-subject].is-faded-top {
  -webkit-mask-image: linear-gradient(to top, #000 72%, transparent);
  mask-image: linear-gradient(to top, #000 72%, transparent);
}

.ng-challenge { position: relative; overflow: hidden; background: #0b1a2c; min-height: 978px; }
.ng-challenge > img { object-position: 60% top; } /* no-JS fallback */
.ng-challenge__text {
  /* 470px column centred at ~69% of the width (as on Wix), narrowing to 360px at mid widths */
  position: relative; z-index: 2; margin-left: auto;
  width: calc(clamp(360px, 37%, 470px) + max(32px, 31% - 230px));
  padding: 70px max(32px, 31% - 230px) 0 0; text-align: center;
}
.ng-challenge__text .h2 { font-size: clamp(36px, 4.4vw, 56px); }
.ng-challenge__role { margin: 34px 0 0; font-size: clamp(22px, 2.4vw, 31px); line-height: 1.5; }
.ng-challenge__copy { text-align: left; margin: 52px auto 0; max-width: 430px; font-size: var(--lead); line-height: 1.5; }
.ng-challenge__copy p { margin-bottom: 1.5em; }
.label { color: var(--gold); font-weight: 700; }
@media (max-width: 860px) {
  /* No room beside the text: she becomes a full-width band above it */
  .ng-challenge { min-height: 0; }
  .ng-challenge > img {
    position: relative; inset: auto; height: auto; aspect-ratio: 1; max-height: 640px; object-position: 0 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
  }
  .ng-challenge__text { width: auto; margin: -70px auto 0; padding: 0 var(--gutter); }
}

.ng-keyart { padding-top: 0; padding-bottom: 0; }
.ng-keyart__imgs { display: grid; gap: 22px; justify-items: center; margin-top: 40px; }
.ng-keyart__imgs img { border-radius: 6px; }
.block .ng-keyart__list { margin: 1.5em auto 0; max-width: 960px; }
.ng-keyart__list p { margin: 0; }

.ng-trailers { padding-top: 40px; }
.ng-trailers__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 12px;
  max-width: 1204px; margin: 70px auto 0; text-align: left;
}
.ng-trailer .h3 { font-size: 30px; margin-top: 22px; }
.ng-trailer p { margin-top: 12px; line-height: 21px; max-width: 590px; }
@media (max-width: 760px) { .ng-trailers__grid { grid-template-columns: 1fr; gap: 36px; } .ng-trailer .h3 { font-size: 24px; } }

/* Social Videos: content column on the left, the Giant framed in the sunset on the right */
.ng-social {
  position: relative; overflow: hidden; background: #665d50; display: flex; align-items: center;
  padding: 64px 0 calc(var(--shape) + 96px) !important;
}
.ng-social > img { object-position: 75% bottom; } /* no-JS fallback; site.js frames it */
.ng-social__content {
  position: relative; z-index: 2;
  width: calc(clamp(360px, 46%, 600px) + max(40px, 25% - 250px));
  padding-left: max(40px, 25% - 250px);
}
.ng-social__collage { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 18px 30px rgba(20, 6, 0, 0.35)); }
.ng-social__card {
  position: relative; z-index: 2; margin-top: -44px; padding: 30px clamp(20px, 3vw, 40px) 30px;
  border-radius: 12px; background: rgba(233, 232, 221, 0.82);
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 24px 60px rgba(30, 10, 0, 0.35); color: var(--navy); text-align: center;
}
.ng-social__card .h2 { font-size: clamp(36px, 4vw, 52px); letter-spacing: normal; line-height: 1.1; }
.ng-social__card .h3 { font-size: clamp(18px, 1.9vw, 24px); line-height: 1.35; margin-top: 4px; }
.ng-social__card .lead { max-width: 440px; margin: 18px auto 0; }
.ng-social__stats {
  list-style: none; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(10, 115, 115, 0.35);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px;
}
.ng-social__stats li {
  display: flex; flex-direction: column; align-items: center; color: var(--teal);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.ng-social__stats strong {
  font-family: var(--display); font-style: italic; font-weight: 900; letter-spacing: -0.01em; text-transform: none;
  font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05;
}
@media (max-width: 860px) {
  /* Stacked: collage, card, then the sunset with the Giant as a band running into the notch */
  .ng-social {
    flex-direction: column; align-items: stretch; padding: 40px var(--gutter) 0 !important;
    background: linear-gradient(to bottom, #4d4840, #665d50 55%);
  }
  .ng-social__content { width: 100%; max-width: 600px; margin: 0 auto; padding-left: 0; }
  .ng-social > img {
    position: relative; order: 2; inset: auto; width: calc(100% + 2 * var(--gutter)); max-width: none; height: auto;
    aspect-ratio: 4 / 3; margin: -64px calc(-1 * var(--gutter)) 0; object-position: 100% 100%;
    -webkit-mask-image: linear-gradient(to top, #000 70%, transparent);
    mask-image: linear-gradient(to top, #000 70%, transparent);
  }
}

.ng-visuals { padding: 34px 0 120px; }
.ng-visuals__intro { padding: 0 var(--gutter); }
.ng-visuals__intro .lead { max-width: 980px; margin: 14px auto 0; }
.ng-visuals__credit { font-size: 17px; line-height: 1.4; max-width: 980px; margin: 4px auto 0; }
.ng-visuals .carousel { margin-top: 64px; }
.ng-visuals .carousel__track { align-items: center; height: 720px; --gap: 12px; }
.ng-visuals .carousel__track img { width: 540px; max-height: 720px; object-fit: contain; }
@media (max-width: 760px) {
  .ng-visuals .carousel__track { height: 440px; }
  .ng-visuals .carousel__track img { width: 300px; max-height: 440px; }
}

/* Cinematic Reel: the Wanderer on the left, copy and video in a right-hand column */
.ng-reel { position: relative; overflow: hidden; background: #0a1626; min-height: clamp(640px, 62vw, 900px); display: flex; align-items: center; }
.ng-reel > img { object-position: 30% top; } /* no-JS fallback; site.js frames it */
.ng-reel__panel {
  position: relative; z-index: 2; margin-left: auto;
  width: calc(clamp(380px, 45%, 640px) + max(40px, 25% - 250px));
  padding: 96px max(40px, 25% - 250px) 104px 0; text-align: center;
}
.ng-reel__panel::before {
  /* soft wash that calms the busy background behind the copy */
  /* runs the full section height (the section clips it), so it never shows a top/bottom edge */
  content: ''; position: absolute; z-index: -1; top: -100vh; bottom: -100vh; right: 0; left: -120px; pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 6, 28, 0), rgba(2, 6, 28, 0.6) 120px);
}
.ng-reel__panel .h2 { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: normal; line-height: 1.15; }
.ng-reel__panel .lead { max-width: 540px; margin: 14px auto 0; }
.ng-reel__video { margin-top: 40px; }
@media (max-width: 860px) {
  /* Stacked: the Wanderer as a band above the copy */
  .ng-reel { display: block; min-height: 0; }
  .ng-reel > img {
    position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; object-position: 0 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
  }
  .ng-reel__panel { width: auto; max-width: calc(640px + 2 * var(--gutter)); margin: -80px auto 0; padding: 0 var(--gutter) 64px; }
  .ng-reel__panel::before { display: none; }
}

.ng-shots { padding: 26px 0 154px; }
.ng-shots .h2 { font-size: clamp(36px, 4.4vw, 56px); }
.ng-shots p { box-sizing: content-box; font-size: 16px; line-height: 1.8; max-width: 580px; margin: 18px auto 0; padding: 0 var(--gutter); }
.ng-shots .carousel { margin-top: 62px; }
.ng-shots .carousel__track { --gap: 8px; padding: 0; scroll-padding: 0; }
.ng-shots .carousel__track img { width: min(705px, 86vw); aspect-ratio: 705 / 396; object-fit: cover; }
.ng-shots .carousel__btn { background: none; color: var(--navy); }

.ng-results { position: relative; overflow: hidden; background: #0e1720; min-height: 941px; }
.ng-results > img { object-position: 80% top; } /* no-JS fallback; site.js frames it */
.ng-results__text {
  /* 582px column (as on Wix), narrowing to 360px at mid widths */
  position: relative; z-index: 2; margin-left: auto;
  width: calc(clamp(360px, 45%, 582px) + max(32px, 31% - 230px));
  padding: 220px max(32px, 31% - 230px) 0 0; text-align: center;
}
.ng-results__text .h2 { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: normal; line-height: 1.22; }
.ng-results__text .lead { max-width: 532px; margin: 40px auto 0; }
@media (max-width: 860px) {
  /* No room beside the text: the character becomes a full-width band above it */
  .ng-results { min-height: 0; }
  .ng-results > img {
    position: relative; inset: auto; height: auto; aspect-ratio: 1; max-height: 640px; object-position: 0 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
  }
  .ng-results__text { width: auto; margin: -70px auto 0; padding: 0 var(--gutter); }
}

/* =================================================================
 * INVISIBLE WORLD
 * ================================================================= */

.iw-hero { position: relative; overflow: hidden; min-height: clamp(480px, 68vw, 872px); color: var(--navy); }
.iw-hero__awards {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
  max-width: 1000px; margin: 0 auto; padding-top: clamp(260px, 43vw, 554px); text-align: center;
  font-size: var(--lead); line-height: 1.5;
}
.iw-hero__awards img { margin: 0 auto 14px; }
.iw-hero__awards p { margin: 0; }
@media (max-width: 640px) { .iw-hero__awards { grid-template-columns: 1fr; padding: 220px var(--gutter) 40px; } }

.badge { display: inline-block; transition: transform .2s; }
.badge:hover { transform: scale(1.04); }
.badge img { width: 200px; height: 67px; }
.iw-about .badge { position: relative; z-index: 3; margin-top: 36px; }

.iw-story .carousel { max-width: 980px; margin: 40px auto 0; overflow: hidden; }
.iw-story .carousel__track { padding: 0; scroll-padding: 0; gap: 0; }
.iw-story .carousel__track img { width: 100%; max-width: 980px; aspect-ratio: 16 / 9; object-fit: cover; }
.iw-story .carousel__btn { color: var(--navy); background: none; }
.iw-story .carousel__btn svg { width: 44px; height: 44px; stroke-width: 1; }

.credits { max-width: 640px; margin: 0 auto; font-size: var(--lead); line-height: 1.46; }
.credits__body { overflow: hidden; max-height: 9.2em; position: relative; transition: max-height .5s ease; }
.credits.is-open .credits__body { max-height: 120em; }
.credits__body p { margin: 0 0 1.4em; }
.credits__more { margin-top: 10px; background: none; border: 0; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--navy); }
.credits__more:hover { text-decoration: underline; }

/* Mass Effect "Cinematic Reveal": video bleeds off the right edge */
.me-reveal .split { max-width: none; margin-right: calc(-1 * var(--gutter)); padding-left: clamp(0px, 9vw, 116px); grid-template-columns: 0.75fr 1fr; }
@media (max-width: 860px) { .me-reveal .split { margin-right: 0; padding-left: 0; grid-template-columns: 1fr; } }

/* Invisible World: App Store badge sits in the navy V */
.iw-about { padding-bottom: calc(var(--shape) * 0.35); }
.iw-about .badge { margin-bottom: 0; }
