:root {
  --container-max: 1376px;
  --text-display: clamp(3rem, 8vw, 7.5rem);
  --text-heading: clamp(2.25rem, 5.2vw, 5rem);
  --section-space: var(--space-10);
}
html { scroll-behavior: smooth; }
.site-top::before { content: none; }
.site-nav { padding-block: var(--space-4); }
.brand { font-size: var(--text-lg); gap: var(--space-3); }
.brand-logo { width: 104px; }
.brand small { font-size: .625rem; }
nav ul { gap: var(--space-6); }
.nav-enquiry { color: var(--color-mahogany); }
.mahogany-menu-toggle { display: none; align-items: center; gap: var(--space-4); border: 0; background: transparent; font: 500 var(--text-base)/1 var(--font-body); color: var(--color-text); cursor: pointer; min-height: 48px; }
h1, h2, h3 { font-weight: 500; }
.eyebrow { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); letter-spacing: .07em; }
.eyebrow::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: var(--radius-full); flex-shrink: 0; }
.masthead { padding-top: var(--space-8); padding-bottom: var(--space-6); }
.masthead h1 { max-width: none; margin-bottom: var(--space-7); font-size: clamp(2.8rem,7.4vw,7rem); line-height: 1.04; }
.masthead h1 span { display: block; }
.masthead h1 span + span { color: var(--color-mahogany); }
.masthead-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-7); margin-bottom: var(--space-8); }
.masthead-bottom .lead { max-width: 60ch; margin: 0; }
.round-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 112px; width: 112px; height: 112px; border: 1px solid var(--color-mahogany); border-radius: var(--radius-full); color: var(--color-mahogany); text-decoration: none; font-size: var(--text-3xl); transition: background var(--duration-fast), color var(--duration-fast); }
.round-link:hover { background: var(--color-mahogany); color: var(--color-white); }
.masthead-image { position: relative; overflow: hidden; border-radius: 2px; }
.masthead-image img { height: clamp(320px,43vw,640px); object-fit: cover; }
.image-caption { position: absolute; bottom: var(--space-5); left: var(--space-5); margin: 0; padding: var(--space-2) var(--space-3); border-radius: 2px; background: var(--color-white); font-size: var(--text-xs); }
.section-head { display: grid; grid-template-columns: minmax(144px,.35fr) minmax(0,1fr); gap: var(--space-7); margin-bottom: var(--space-8); align-items: start; }
.section-head h2 { max-width: 17ch; margin: 0; }
.section-head .eyebrow { margin-top: var(--space-3); }
.service-list { border-top: 1px solid var(--color-border); }
.service-row { border-bottom: 1px solid var(--color-border); }
.service-row summary { display: flex; align-items: center; gap: var(--space-5); padding-block: var(--space-6); cursor: pointer; list-style: none; }
.service-row summary::-webkit-details-marker { display: none; }
.service-row summary::after { content: '＋'; margin-left: auto; color: var(--color-mahogany); font-size: var(--text-xl); }
.service-row[open] summary::after { content: '−'; }
.service-row h3 { font-size: clamp(1.5rem,3.5vw,3rem); margin: 0; }
.service-row .service-copy { max-width: var(--measure-prose); padding: 0 0 var(--space-6); }
.service-index { min-width: var(--space-6); color: var(--color-text-muted); font: 500 var(--text-sm)/1 var(--font-accent); }
.home-project { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: var(--space-8); padding-block: var(--space-8); }
.home-project:nth-of-type(even) { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
.home-project:nth-of-type(even) > div:first-child { order: 2; }
.home-project > div:first-child { position: relative; align-self: stretch; }
.home-project img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.home-project h3 { font-size: clamp(2rem,3.2vw,3rem); }
.home-project p { color: var(--color-text-muted); }
.home-project .project-link { display: inline-flex; align-items: center; justify-content: space-between; width: 100%; padding-block: var(--space-4); text-decoration: none; }
.metrics { background: var(--color-bg); }
.metrics dl { padding-block: var(--space-7); }
.metrics dl div { align-items: flex-start; padding-left: var(--space-7); text-align: left; }
.metrics dl div:first-child { padding-left: 0; }
.metrics dd { font-size: clamp(2.5rem,6vw,5rem); font-weight: 500; }
.intro { padding-block: var(--space-9) var(--space-8); background: var(--color-surface); position: relative; isolation: isolate; }
.intro h1 { max-width: 16ch; margin-block: var(--space-5) var(--space-7); overflow-wrap: anywhere; }
.intro-label { font-size: var(--text-sm); }
.intro-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-7); }
.intro .lead { max-width: 62ch; }
.intro-photo { color: var(--color-white); background: var(--color-mahogany-hover); min-height: 640px; display: flex; align-items: flex-end; }
.intro-photo > img { position: absolute; inset: 0; height: 100%; object-fit: cover; z-index: -2; }
.intro-photo::after { position: absolute; inset: 0; content: ''; background: var(--gradient-image); z-index: -1; }
.intro-photo .lead { color: var(--color-white); }
.intro-photo :focus-visible { outline-color: var(--color-white); }
.scroll-link { display: flex; flex: 0 0 80px; align-items: center; justify-content: center; width: 80px; height: 80px; border: 1px solid currentColor; border-radius: var(--radius-full); text-decoration: none; font-size: var(--text-xl); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-8) var(--space-5); align-items: start; }
.portfolio-grid .project:nth-child(3n + 2) { margin-top: var(--space-8); }
.project { background: transparent; border-radius: 0; overflow: visible; }
.project .card { padding: var(--space-5) 0 0; border: 0; background: transparent; border-radius: 0; }
.project .card h3 { font-weight: 500; font-size: var(--text-lg); }
.project .card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.project-image { display: block; overflow: hidden; border-radius: 2px; background: var(--color-surface); }
.project-image img { aspect-ratio: 4/5; object-fit: cover; transition: transform 400ms var(--easing-standard); }
.project-image:hover img { transform: scale(1.035); }
.project-link { color: var(--color-mahogany); font-weight: 500; text-decoration: none; }
.project-link:hover { text-decoration: none; }
.capability-list { display: grid; gap: 0;  }
.capability-list .card { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1fr); gap: var(--space-5) var(--space-8); padding: var(--space-8) 0; border: 0; border-bottom: 1px solid var(--color-border); background: transparent; border-radius: 0; position: relative; }
.capability-list .card h3 { font-size: clamp(2rem,4vw,3.5rem); }
.capability-list .card p { grid-column: 2; max-width: var(--measure-prose); }
.capability-list .card img { grid-column: 1; grid-row: 2 / span 3; margin: 0; aspect-ratio: 4/3; }

.about-story { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: var(--space-8); }
.about-story .story-photo img { aspect-ratio: 4/5; object-fit: cover; }
.about-story .prose { align-self: center; }
.team .card { border: 0; border-top: 1px solid var(--color-border); border-radius: 0; padding: var(--space-6) 0; background: transparent; }
.team .card img { aspect-ratio: 4/5; object-position: center top; }
.team .card h3 { font-size: var(--text-xl); }
.team .card p { color: var(--color-text-muted); }
.team .card p:has(strong) { color: var(--color-mahogany); }
.project-intro h1 { font-size: clamp(2.5rem,6.4vw,6rem); }
.project-content .project-lead img { max-height: 800px; aspect-ratio: 16/9; }
.project-content .prose { margin-left: auto; max-width: 76ch; }
.project-content .project-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
.project-content .project-gallery img { max-height: none; }
.project-content .project-gallery img:nth-child(3n) { grid-column: 1 / -1; aspect-ratio: 16/9; }
.page-id-12 .split { grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr); }
.page-id-12 aside { padding-top: var(--space-5); }
.page-id-12 aside h2 { font-size: var(--text-xl); }
form input, form select, form textarea { border: 0; border-bottom: 1px solid var(--color-input-border); border-radius: 0; padding-inline: 0; background: transparent; }
form input:focus-visible, form select:focus-visible, form textarea:focus-visible { outline-offset: var(--space-1); }
.cta { background: var(--color-mahogany); padding-block: var(--space-9); }
.cta-link { display: flex; justify-content: space-between; gap: var(--space-7); align-items: center; color: var(--color-white); font: 500 clamp(3rem,8vw,7.5rem)/1.02 var(--font-heading); letter-spacing: var(--tracking-heading); text-decoration: none; }
.cta-arrow { font-family: var(--font-body); font-size: 1.1em; transition: transform var(--duration-fast); }
.cta-link:hover .cta-arrow { transform: translate(4px,-4px); }
.site-bottom .wrap { display: block; padding-block: var(--space-8) var(--space-5); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: var(--space-7); align-items: start; }
.footer-top nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.footer-top address { font-size: var(--text-sm); }
.footer-wordmark { margin: var(--space-8) 0 var(--space-5); font: 500 clamp(3rem,15.8vw,15rem)/.9 var(--font-heading); letter-spacing: -.07em; color: var(--color-mahogany); }
.footer-legal { margin: 0; padding-top: var(--space-5); border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: var(--text-xs); }
@media(max-width:1024px) {
  .portfolio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portfolio-grid .project:nth-child(3n + 2) { margin-top: 0; }
  .portfolio-grid .project:nth-child(even) { margin-top: var(--space-7); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top address { grid-column: 1 / -1; }
}
@media(max-width:768px) {
  :root { --section-space: var(--space-8); }
  .site-nav { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .brand { font-size: var(--text-lg); }
  .brand-logo { width: 80px; }
  .has-navigation .mahogany-menu-toggle { display: inline-flex; }
  .has-navigation #main-navigation { display: none; width: 100%; padding-block: var(--space-5); border-top: 1px solid var(--color-border); }
  .has-navigation #main-navigation.is-open { display: block; }
  #main-navigation ul { display: grid; gap: var(--space-5); }
  #main-navigation a { display: block; font-size: var(--text-md); padding-block: var(--space-2); }
  .masthead { padding-top: var(--space-7); }
  .masthead h1 span { display: inline; }
  .masthead-bottom { align-items: flex-start; gap: var(--space-5); margin-bottom: var(--space-7); }
  .masthead-bottom .lead { font-size: var(--text-base); }
  .round-link { flex-basis: 56px; width: 56px; height: 56px; font-size: var(--text-xl); }
  .image-caption { bottom: var(--space-3); left: var(--space-3); }
  .section-head { grid-template-columns: 1fr; gap: var(--space-4); margin-bottom: var(--space-7); }
  .section-head .eyebrow { margin: 0; }
  .home-project, .home-project:nth-of-type(even), .about-story, .capability-list .card, .page-id-12 .split { grid-template-columns: 1fr; gap: var(--space-5); }
  .home-project:nth-of-type(even) > div:first-child { order: 0; }
  .home-project img { position: static; height: auto; aspect-ratio: 4/3; }
  .metrics dl div { padding-left: var(--space-4); }
  .metrics dt { font-size: .6875rem; }
  .service-row summary { gap: var(--space-3); }
  .service-row .service-copy { padding-left: 0; }
  .intro { padding-block: var(--space-7); }
  .intro h1 { max-width: 100%; }
  .intro-photo { min-height: 560px; }
  .intro-bottom { gap: var(--space-4); }
  .intro-bottom .lead { font-size: var(--text-base); }
  .scroll-link { width: 56px; height: 56px; flex-basis: 56px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .portfolio-grid .project:nth-child(even) { margin-top: 0; }
  .project-image img { aspect-ratio: 4/3; }
  .capability-list .card p, .capability-list .card img { grid-column: auto; grid-row: auto; }
  .project-content .project-gallery { grid-template-columns: 1fr; }
  .project-content .project-gallery img:nth-child(3n) { grid-column: auto; aspect-ratio: 4/3; }
  .cta { padding-block: var(--space-8); }
  .cta-link { gap: var(--space-5); }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-wordmark { margin-top: var(--space-7); }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .project-image img, .cta-arrow { transition: none; }
  .project-image:hover img, .cta-link:hover .cta-arrow { transform: none; }
}
.footer-social-links { display: flex; flex-wrap: wrap; gap: var(--space-3); padding: 0; margin: 0; list-style: none; grid-column: 3; }
.footer-social-links a { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
.footer-social-links img { width: 24px; height: 24px; object-fit: contain; }
@media(max-width:1024px) { .footer-social-links { grid-column: auto; } }

.project-slider { min-width: 0; }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.project-slide { position: relative; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.project-slide img { width: 100%; height: clamp(320px,43vw,640px); object-fit: cover; }
.slide-caption { position: absolute; bottom: var(--space-5); left: var(--space-5); max-width: calc(100% - var(--space-7)); display: inline-flex; align-items: center; gap: var(--space-5); padding: var(--space-3) var(--space-4); color: var(--color-text); background: var(--color-white); font-size: var(--text-sm); text-decoration: none; }
.slide-caption:hover { text-decoration: none; }
.slider-controls:not([hidden]) { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); padding-top: var(--space-4); }
.slider-status { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.slider-buttons { display: flex; gap: var(--space-2); }
.slider-buttons button { width: 48px; height: 48px; border: 1px solid var(--color-mahogany); border-radius: var(--radius-full); color: var(--color-mahogany); background: transparent; font-size: var(--text-lg); cursor: pointer; }
.slider-buttons button:hover:not(:disabled) { background: var(--color-mahogany); color: var(--color-white); }
.slider-buttons button:disabled { opacity: .35; cursor: default; }
@media(max-width:768px) {
  .slide-caption { bottom: var(--space-4); left: var(--space-4); max-width: calc(100% - var(--space-6)); font-size: var(--text-xs); }
}

.slider-buttons .slider-autoplay { display: inline-flex; align-items: center; justify-content: center; padding: 0; width: 48px; height: 48px; min-width: 0; border-radius: var(--radius-full); }
.autoplay-icon { display: block; position: relative; width: 12px; height: 14px; }
.autoplay-icon::before, .autoplay-icon::after { content: ''; position: absolute; top: 0; width: 3px; height: 14px; border-radius: 1px; background: currentColor; }
.autoplay-icon::before { left: 1px; }
.autoplay-icon::after { right: 1px; }
.is-paused .autoplay-icon::before { left: 2px; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; border-radius: 0; background: transparent; }
.is-paused .autoplay-icon::after { display: none; }

.capability-list .capability-service { display: block; }
.capability-copy { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1fr); align-items: start; gap: var(--space-8); }
.capability-list .capability-service h3 { margin-bottom: var(--space-5); }
.capability-description p:last-child { margin-bottom: 0; }
.capability-list .capability-service.has-image { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1fr); align-items: stretch; gap: var(--space-8); }
.has-image .capability-copy { display: block; }
.capability-media { position: relative; min-height: 280px; }
.capability-list .capability-media img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; object-fit: cover; }
@media(max-width:768px) {
  .capability-copy, .capability-list .capability-service.has-image { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
  .capability-list .capability-service h3 { margin-bottom: 0; }
  .capability-media { min-height: 0; }
  .capability-list .capability-media img { position: static; height: auto; aspect-ratio: 4/3; }
  .has-image .capability-copy { display: grid; gap: var(--space-5); }
}

.showreel-trigger { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); }
.showreel-trigger > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.showreel-trigger::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / 20%); }
.showreel-play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 80px; height: 80px; border: 1px solid var(--color-white); border-radius: var(--radius-full); background: rgb(0 0 0 / 24%); }
.showreel-play::after { content: ''; width: 0; height: 0; margin-left: 4px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid var(--color-white); }
.showreel-caption { position: absolute; z-index: 1; left: var(--space-5); bottom: var(--space-5); color: var(--color-white); font-weight: 500; }
.showreel-dialog { padding: 0; max-width: calc(100vw - var(--space-6)); max-height: calc(100dvh - var(--space-6)); overflow: visible; border: 0; background: var(--color-text); border-radius: var(--radius-sm); }
.showreel-dialog::backdrop { background: rgb(0 0 0 / 88%); }
.showreel-dialog video { display: block; width: auto; height: auto; max-width: calc(100vw - var(--space-6)); max-height: calc(100dvh - var(--space-6)); border-radius: var(--radius-sm); }
.showreel-close { position: absolute; z-index: 2; top: var(--space-2); right: var(--space-2); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 50%); border-radius: var(--radius-full); background: rgb(0 0 0 / 65%); color: var(--color-white); font: 400 32px/1 var(--font-body); cursor: pointer; }
.showreel-dialog :focus-visible { outline-color: var(--color-white); }
.has-video-lightbox { overflow: hidden; }

.logos.logo-marquee { display: block; overflow: hidden; }
.logo-marquee-row { overflow: hidden; margin-bottom: var(--space-4); }
.logo-marquee-track { display: flex; width: max-content; animation: client-logos-scroll 90s linear infinite; }
.logo-marquee-row:nth-child(2) .logo-marquee-track { animation-direction: reverse; }
.logo-marquee-group { display: flex; flex: 0 0 auto; gap: var(--space-4); padding-right: var(--space-4); }
.logo-marquee .logo-marquee-group img { flex: 0 0 168px; width: 168px; height: 112px; }
.logo-marquee:hover .logo-marquee-track,
.logo-marquee:focus-within .logo-marquee-track { animation-play-state: paused; }
@keyframes client-logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media(max-width:768px) {
  .logo-marquee .logo-marquee-group img { flex-basis: 136px; width: 136px; height: 96px; padding: var(--space-4); }
}
@media(prefers-reduced-motion:reduce) {
  .logo-marquee-track { animation: none; }
  .logo-marquee-row { overflow-x: auto; }
  .logo-marquee-duplicate, }

.cta-photo { position: relative; isolation: isolate; overflow: hidden; }
.cta-photo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; opacity: .65; }
.cta-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(133 0 0 / 80%), rgb(133 0 0 / 60%)); pointer-events: none; }

.section-head { display: flex; justify-content: flex-start; }
.section-head h2 { text-align: left; }
.page-content .section > .wrap > h2 { text-align: left; }

.showreel-section { row-gap: var(--space-5); }
.showreel-heading { grid-column: 2; grid-row: 1; margin-bottom: 0; }
.showreel-intro { grid-column: 1; grid-row: 2; align-self: center; }
.showreel-media { grid-column: 2; grid-row: 2; }
@media(max-width:768px) {
  .showreel-intro { grid-column: 1; grid-row: 1; }
  .showreel-heading { grid-column: 1; grid-row: 2; margin-top: var(--space-5); }
  .showreel-media { grid-column: 1; grid-row: 3; }
}

/* Project stories: image movement stays inside the original, text-height frame. */
.home-project > div:first-child { overflow: hidden; border-radius: var(--radius-sm); }
.home-project h3 { transition: color 240ms ease; }
.home-project:is(:hover, :focus-within) h3 { color: var(--color-mahogany); }
.home-project .project-link span { display: inline-block; transition: transform 320ms cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: no-preference) {
  .home-project img { transition: transform 650ms cubic-bezier(.2,.7,.2,1); transform-origin: var(--project-x, 50%) var(--project-y, 50%); }
  .home-project:focus-within img { transform: scale(1.045); }
  .home-project:is(:hover, :focus-within) .project-link span { transform: translate(4px, -4px); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-project:hover img { transform: scale(1.045); }
}
@media (prefers-reduced-motion: reduce) {
  .home-project h3, .home-project .project-link span { transition: none; }
}

/* The final call to action uses the hero's circular arrow component. */
.cta-link .cta-arrow { border-color: currentColor; color: var(--color-white); font-family: var(--font-body); transform: none; letter-spacing: normal; }
.cta-arrow > span { display: inline-block; }
.cta-link:is(:hover, :focus-visible) .cta-arrow { background: var(--color-white); color: var(--color-mahogany); border-color: var(--color-white); transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .cta-arrow > span { transition: transform 320ms cubic-bezier(.2,.7,.2,1); }
  .cta-link:is(:hover, :focus-visible) .cta-arrow > span { transform: translate(4px, -4px); }
}
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-5); border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: var(--text-xs); }
.footer-bottom .footer-legal { padding: 0; border: 0; }
.footer-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.footer-legal-links a:is(:hover, :focus-visible) { color: var(--color-mahogany); }
@media (max-width: 768px) {
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-legal-links { gap: var(--space-3); }
}

.icon-arrow { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: middle; flex-shrink: 0; }
.round-link .icon-arrow { width: 1em; height: 1em; }
.cta-link .cta-arrow { font-size: var(--text-3xl); }
.cta-arrow > span { display: flex; align-items: center; justify-content: center; }
.slider-buttons button { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 768px) { .cta-link .cta-arrow { font-size: var(--text-xl); } }

/* Cool charcoal and fine grain give the showreel its own atmosphere. */
.section-showreel {
  background-color: #1b232b;
  background-image: url('grain.svg'), radial-gradient(ellipse at 80% 15%, rgb(70 87 104 / 24%), transparent 65%);
  background-size: 180px 180px, 100% 100%;
  color: #edf2f7;
  border-color: #33404d;
}
.section-showreel h2, .section-showreel a { color: #edf2f7; }
.section-showreel .lead { color: #c5cfd9; }
.section-showreel .showreel-intro a:is(:hover, :focus-visible) { color: #fff; }
.section-showreel :focus-visible { outline-color: #edf2f7; }
.section-showreel .showreel-trigger { box-shadow: 0 0 0 1px rgb(237 242 247 / 12%); }

/* Brief project previews share a consistent frame and a bottom-aligned action. */
.home-project > div:nth-child(2) { display: flex; flex-direction: column; align-items: flex-start; }
.home-project > div:nth-child(2) > p { margin-bottom: var(--space-5); }
.home-project .project-link { margin-top: auto; }
@media (min-width: 769px) { .home-project > div:nth-child(2) { min-height: 480px; } }
@media (min-width: 1200px) { .home-project > div:nth-child(2) { min-height: 360px; } }
.showreel-heading { white-space: nowrap; font-size: clamp(1.3rem, 3.2vw, 3.2rem); }

/* All phrases share one grid cell, reserving space for the tallest line. */
.masthead h1 .hero-rotator { display: grid; color: var(--color-mahogany); }
.masthead h1 .hero-phrase { display: block; grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.masthead h1 .hero-phrase.is-active { opacity: 1; visibility: visible; }

.masthead h1 .hero-rotator { font-size: clamp(1rem, 6.5vw, 6.3rem); white-space: nowrap; }
.slider-progress { appearance: none; -webkit-appearance: none; display: block; width: min(32%, 320px); height: 4px; border: 0; border-radius: 4px; overflow: hidden; background: var(--color-border); color: var(--color-mahogany); }
.slider-progress::-webkit-progress-bar { background: var(--color-border); border-radius: 4px; }
.slider-progress::-webkit-progress-value { background: var(--color-mahogany); border-radius: 4px; }
.slider-progress::-moz-progress-bar { background: var(--color-mahogany); border-radius: 4px; }
.slider-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 768px) { .slider-progress { width: 40%; } }
