/*
 * Copyright (c) 2026 Nick Goard. All Rights Reserved.
 */

/* Global stylesheet */

/* Reset */

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

html,
body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, figure {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-box);
  position: relative;
  z-index: 1;
}

/* Image circle */
.img-circle {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

figure {
  display: block;
}

figcaption {
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

a {
  position: relative;
  display: inline-block;
  color: var(--color-brand);
  text-decoration: none;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.05em;
  width: 100%;
  height: 0.08em;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover,
a:focus-visible {
  color: var(--color-brand-hover);
}

a:hover::after,
a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Nav link */
.nav-link {
  color: var(--color-text);
}

/* Disabled links */
a[aria-disabled="true"],
a.is-disabled {
  color: var(--color-text-muted);
  pointer-events: none;
  cursor: default;
}

a[aria-disabled="true"]::after,
a.is-disabled::after {
  content: none;
}

ul,
ol {
  list-style: none;
}

/* Content lists */
.list,
.list--ordered {
  padding-left: 1.25em;
  line-height: var(--leading-normal);
}

.list {
  list-style: disc;
}

.list--ordered {
  list-style: decimal;
}

.list li + li {
  margin-top: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Focus outline */
:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* Design tokens */

:root {
  /* Type */
  --font-body: "Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Type scale */
  --text-base: 1.125rem;
  --text-h6:   1.125rem;
  --text-h5:   1.25rem;
  --text-h4:   1.563rem;
  --text-h3:   1.953rem;
  --text-h2:   2.441rem;
  --text-h1:   6.104rem;

  /* Line height */
  --leading-h1:     1.05;
  --leading-h2:     1.1;
  --leading-h3:     1.15;
  --leading-h4:     1.2;
  --leading-h5:     1.25;
  --leading-h6:     1.3;
  --leading-normal: 1.5;

  /* Color */
  --color-bg:          #ffffff;
  --color-text:        #000000;
  --color-text-muted:  #555555;
  --color-border:      #e0e0e0;

  --color-brand:       #EA348F;
  --color-brand-hover: #EE5DA5;

  --color-black:       #000000;
  --color-black-hover: #181818;

  --color-gray-light:  #f0f0f0;

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
}

/* Spacing utilities — margin/padding on the --space-* scale, for the
   common case of "this element needs a gap before/after it" without
   reaching for an inline style. Named margin-top-lg / padding-bottom-xl
   etc, matching the --space-xs/sm/md/lg/xl tokens above. */

.margin-top-xs  { margin-top: var(--space-xs); }
.margin-top-sm  { margin-top: var(--space-sm); }
.margin-top-md  { margin-top: var(--space-md); }
.margin-top-lg  { margin-top: var(--space-lg); }
.margin-top-xl  { margin-top: var(--space-xl); }

.margin-bottom-xs { margin-bottom: var(--space-xs); }
.margin-bottom-sm { margin-bottom: var(--space-sm); }
.margin-bottom-md { margin-bottom: var(--space-md); }
.margin-bottom-lg { margin-bottom: var(--space-lg); }
.margin-bottom-xl { margin-bottom: var(--space-xl); }

.padding-top-sm { padding-top: var(--space-sm); }
.padding-top-md { padding-top: var(--space-md); }
.padding-top-lg { padding-top: var(--space-lg); }
.padding-top-xl { padding-top: var(--space-xl); }

.padding-bottom-sm { padding-bottom: var(--space-sm); }
.padding-bottom-md { padding-bottom: var(--space-md); }
.padding-bottom-lg { padding-bottom: var(--space-lg); }
.padding-bottom-xl { padding-bottom: var(--space-xl); }

.padding-block-xl { padding-block: var(--space-xl); }

.margin-left-xs { margin-left: var(--space-xs); }

/* One-off: Contact page pulls its footer clearance in by half an --space-xl
   (the footer already adds its own margin-top: var(--space-xl), so without
   this the gap doubles up) while keeping a smaller bottom breathing room of
   its own. Specific enough to name for what it does rather than genericize. */
.contact-footer-spacing { padding-bottom: var(--space-lg); margin-bottom: calc(var(--space-xl) / -2); }

/* Text weight/size utilities — for the handful of spots that need bold
   body copy or a smaller fine-print line without a one-off inline style. */

.font-weight-bold { font-weight: 700; }
.font-size-sm { font-size: 0.875rem; }

/* Accessibility utility */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Layout */

.container {
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.breakout {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-md);
}

/* Grid overflow guard */
.grid > [class*="col-"] {
  min-width: 0;
}

.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* Grid gap large */
.grid--gap-lg {
  gap: var(--space-lg);
}

@media (max-width: 640px) {
  .grid--gap-lg {
    gap: var(--space-md);
  }
}

/* Mobile column overrides */
@media (max-width: 640px) {
  .grid > [class*="col-"] {
    grid-column: span 12;
  }

  .col-sm-1  { grid-column: span 1 !important; }
  .col-sm-2  { grid-column: span 2 !important; }
  .col-sm-3  { grid-column: span 3 !important; }
  .col-sm-4  { grid-column: span 4 !important; }
  .col-sm-6  { grid-column: span 6 !important; }
  .col-sm-12 { grid-column: span 12 !important; }
}

/* Tablet column overrides */
@media (min-width: 641px) and (max-width: 1024px) {
  .col-md-1  { grid-column: span 1; }
  .col-md-2  { grid-column: span 2; }
  .col-md-3  { grid-column: span 3; }
  .col-md-4  { grid-column: span 4; }
  .col-md-6  { grid-column: span 6; }
  .col-md-8  { grid-column: span 8; }
  .col-md-12 { grid-column: span 12; }
}

/* Desktop column overrides */
@media (min-width: 1025px) {
  .col-lg-1  { grid-column: span 1; }
  .col-lg-2  { grid-column: span 2; }
  .col-lg-3  { grid-column: span 3; }
  .col-lg-4  { grid-column: span 4; }
  .col-lg-5  { grid-column: span 5; }
  .col-lg-6  { grid-column: span 6; }
  .col-lg-7  { grid-column: span 7; }
  .col-lg-8  { grid-column: span 8; }
  .col-lg-9  { grid-column: span 9; }
  .col-lg-10 { grid-column: span 10; }
  .col-lg-12 { grid-column: span 12; }
}

/* Base type */

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1, h2, h3 {
  font-weight: 700;
}

h4, h5 {
  font-weight: 500;
}

h6 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1 { line-height: var(--leading-h1); }
h2 { line-height: var(--leading-h2); }
h3 { line-height: var(--leading-h3); }
h4 { line-height: var(--leading-h4); }
h5 { line-height: var(--leading-h5); }
h6 { line-height: var(--leading-h6); }

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }
h5 { font-size: var(--text-h5); }
h6 { font-size: var(--text-h6); }

h1 { letter-spacing: -2.5px; }
h2 { letter-spacing: -1px; }
h3 { letter-spacing: -0.5px; }

/* Mobile h1 */
@media (max-width: 640px) {
  h1 {
    font-size: 3.052rem;
    letter-spacing: -1px;
  }
}

p {
  font-weight: 400;
}

p + p {
  margin-top: var(--space-sm);
}

/* Blockquote */
blockquote {
  font-size: var(--text-h4);
  font-weight: 500;
  line-height: var(--leading-h4);
  border-left: 0.2em solid var(--color-brand);
  padding-left: var(--space-md);
}

blockquote cite {
  display: block;
  margin-top: var(--space-sm);
  font-size: var(--text-base);
  font-style: normal;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* Utility classes */

/* Brand */
.brand {
  color: var(--color-brand);
}

/* Text muted */
.text-muted {
  color: var(--color-text-muted);
}

/* Eyebrow */
.eyebrow {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

/* Eyebrow title */
.eyebrow-title {
  font-weight: 700;
}

/* Highlight */
.highlight {
  color: #ffffff;
  background-color: var(--color-brand);
  box-shadow: 0 0.2em 0 var(--color-brand), 0 -0.15em 0 var(--color-brand);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Section heading */
.section-heading {
  padding-bottom: var(--space-xs);
  border-bottom: 5px solid var(--color-black);
}

@media (min-width: 1025px) {
  .case-study-intro-headline {
    font-size: calc(var(--text-h2) * 1.6);
    line-height: 0.95;
  }
}

/* Contact link (icon + text) */
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-black);
}

.contact-link svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  fill: currentColor;
}

.contact-link::after {
  left: 1.6em;
  width: calc(100% - 1.6em);
}

/* Pills */

.pill {
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
  padding: 0.45em 0.9em;
  border-radius: 999px;
}

.pill--pink {
  background-color: var(--color-brand);
}

.pill--pink-light {
  background-color: var(--color-brand-hover);
}

.pill--gray {
  background-color: #707070;
}

.pill--black {
  background-color: #000000;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: calc(0.6em + 5px);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
  padding: 1em 1.4em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  color: #ffffff;
}

.btn::after {
  content: none;
}

.btn .btn__arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 1.8em;
  height: 1em;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn .btn__arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
  transform: translateX(0.2em);
}

.btn--pink {
  background-color: var(--color-brand);
}

.btn--pink:hover,
.btn--pink:focus-visible {
  background-color: var(--color-brand-hover);
}

.btn--black {
  background-color: var(--color-black);
}

.btn--black:hover,
.btn--black:focus-visible {
  background-color: var(--color-black-hover);
}

/* Solid background boxes */

:root {
  --radius-box: 20px;
}

/* Box */
.box {
  border-radius: var(--radius-box);
}

/* Project gallery: full-width stacked images on internal project pages */
.project-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Inline autoplay video inside a .project-gallery -- same full-width,
   rounded-corner treatment as the gallery's images, no controls/lightbox. */
.project-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-box);
  position: relative;
  z-index: 1;
}

/* Video gallery: full-width stacked poster-image tiles that open a video lightbox */
.video-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.video-tile {
  position: relative;
  display: block;
  width: 100%;
}

.video-tile img {
  width: 100%;
  height: auto;
}

.video-tile__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid #ffffff;
  border-radius: 999px;
  padding: 0;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-tile__play svg {
  width: 32%;
  height: 32%;
}

.video-tile__play:hover,
.video-tile__play:focus-visible {
  color: #ffffff;
  border-color: var(--color-brand);
  background-color: var(--color-brand);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Video grid: 3 columns of vertical (9:16) video tiles, each opening
   the shared video lightbox on play -- e.g. a set of short-form UGC
   clips shown side by side rather than stacked full-width like
   .video-gallery. */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.video-grid .video-tile img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-box);
}

@media (max-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid .video-tile:first-child {
    grid-column: 1 / -1;
  }
}


/* Image grid: 3 columns of thumbnails (natural aspect ratio, no forced
   crop) that open a full-size image lightbox */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* With a fixed set of 9 images, 2 columns leaves the 9th as a lone
     widow on its own row. Making the first image a full-width feature
     instead keeps the remaining 8 in clean pairs (4 rows of 2). */
  .image-grid__item:first-child {
    grid-column: 1 / -1;
  }
}

/* Image grid modifier: 4 columns instead of the default 3 (e.g. a
   larger 16-image set). Falls back to the same 2-column mobile
   treatment as the default grid. */
.image-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 640px) {
  .image-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }
}


.image-grid__item {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.image-grid__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-box);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-grid__item:hover img,
.image-grid__item:focus-visible img {
  opacity: 0.85;
}

/* Featured carousel: one full-width featured image with overlaid
   left/right arrows, and a centered row of 3 thumbnails below that
   cycle the featured image (no lightbox -- the featured image IS the
   full view; thumbnails/arrows just change what's showing in it). */
.featured-carousel {
  position: relative;
}

.featured-carousel__stage {
  position: relative;
  width: 100%;
}

.featured-carousel__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-box);
}

.featured-carousel__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background-color: transparent;
  cursor: pointer;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-carousel__arrow:hover,
.featured-carousel__arrow:focus-visible {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.featured-carousel__arrow svg {
  width: 50%;
  height: calc(50% * 20 / 36);
}

.featured-carousel__arrow--prev {
  left: var(--space-sm);
}

.featured-carousel__arrow--prev svg {
  transform: scaleX(-1);
}

.featured-carousel__arrow--next {
  right: var(--space-sm);
}

.featured-carousel__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.featured-carousel__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-carousel__thumb[hidden] {
  display: none;
}

.featured-carousel__thumb:hover,
.featured-carousel__thumb:focus-visible {
  opacity: 0.85;
}

.featured-carousel__thumb.is-active {
  opacity: 1;
}

.featured-carousel__thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-box);
}

@media (max-width: 640px) {
  .featured-carousel__thumbs {
    gap: var(--space-sm);
  }
}

/* Featured carousel modifier: no thumbnail row -- just the featured
   image with left/right arrows (e.g. tall full-page screenshots that
   wouldn't read well as small thumbnails). The thumb buttons still
   render in the DOM (featured-carousel.js uses them as its data model
   for what to show next/prev) -- this just hides that row visually. */
.featured-carousel--no-thumbs .featured-carousel__thumbs {
  display: none;
}

/* Video lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__inner {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
}

.lightbox video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-box);
  background-color: #000000;
}

.lightbox__close {
  position: absolute;
  top: -3.5rem;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: none;
  cursor: pointer;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.lightbox__close svg {
  width: 40%;
  height: 40%;
}

.lightbox__image-stage {
  display: flex;
  justify-content: center;
  max-width: 100%;
  max-height: 85vh;
}

.lightbox__image-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-box);
}

.lightbox__nav {
  position: fixed;
  z-index: 1001;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background-color: transparent;
  cursor: pointer;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.lightbox__nav__arrow {
  width: 50%;
  height: calc(50% * 20 / 36);
}

.lightbox__nav--prev .lightbox__nav__arrow {
  transform: scaleX(-1);
}

.lightbox__nav--prev {
  left: var(--space-md);
}

.lightbox__nav--next {
  right: var(--space-md);
}

/* Wraps both nav buttons -- `contents` on desktop lets each button's own
   `position: fixed` edge placement apply as if this wrapper wasn't there
   at all. Mobile below turns it into a real flex row instead. */
.lightbox__nav-row {
  display: contents;
}

@media (max-width: 640px) {
  .lightbox__nav-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
  }

  .lightbox__nav {
    position: static;
    transform: none;
  }
}

/* Callout boxes */

.callout {
  padding: var(--space-md);
  border-radius: var(--radius-box);
}

.callout > *:first-child {
  margin-top: 0;
}

.callout h1, .callout h2, .callout h3,
.callout h4, .callout h5, .callout h6 {
  margin-bottom: var(--space-xs);
}

.callout p {
  max-width: 40em;
}

.callout--pink {
  background-color: var(--color-brand);
  color: #ffffff;
}

.callout--pink a {
  color: var(--color-text);
}

.callout--pink a:hover,
.callout--pink a:focus-visible {
  color: var(--color-black-hover);
}

.callout--gray {
  background-color: var(--color-gray-light);
  color: var(--color-text);
}

.callout--gray a {
  color: var(--color-brand);
}

.callout--gray a:hover,
.callout--gray a:focus-visible {
  color: var(--color-brand-hover);
}

.callout--black {
  background-color: var(--color-black);
  color: #ffffff;
}

.callout--black a:not(.btn) {
  color: var(--color-brand);
}

.callout--black a:not(.btn):hover,
.callout--black a:not(.btn):focus-visible {
  color: var(--color-brand-hover);
}

.callout--black .btn {
  color: #ffffff;
}

/* Callout modifier: centered CTA */

.callout--center {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.callout--center p {
  max-width: none;
  margin-inline: auto;
  color: #c2c2c2;
}

.callout--center .btn {
  margin-top: var(--space-md);
}

/* Callout modifier: quick stats list (icon + figure rows), used inside
   an image grid to surface a handful of key numbers alongside the
   photos. Reusable anywhere a callout needs an icon-led stat list. */
.quick-stats__title {
  font-weight: 700;
}

.quick-stats__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  padding: 0;
  list-style: none;
}

.quick-stats__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.quick-stats__icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-brand);
}

.quick-stats__footnote {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: #9a9a9a;
}

/* Quick stats modifier: grouped, icon-less lines (e.g. "Mobile" /
   "Desktop" sub-headers each with their own stat lines) instead of the
   default flat icon-led list -- used when the box needs to separate
   stats by category rather than show one continuous list. */
.quick-stats__group + .quick-stats__group {
  margin-top: var(--space-md);
}

.quick-stats__group-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  font-weight: 700;
  color: #9a9a9a;
}

.quick-stats__group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: currentColor;
  opacity: 0.4;
}

.quick-stats__group-list {
  margin-top: var(--space-xs);
  padding: 0;
  list-style: none;
}

.quick-stats__group-item {
  margin-top: var(--space-xs);
}

/* Quick stats modifier: Notes callout -- uses the brand pink callout
   instead of the default black, for note-style text content (no
   icons/stats). Footnote and group-label colors are overridden here
   since their default grey was tuned for the black background. */
.quick-stats--notes .quick-stats__footnote {
  color: rgba(255, 255, 255, 0.75);
}

.quick-stats--notes .quick-stats__group-label {
  color: rgba(255, 255, 255, 0.75);
}

/* Single image + Quick Stats sidebar */
.image-with-stats__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-box);
}

/* Section icon indicators -- a "visual menu" row of round icon links
   shown under a project/case-study intro, one per gallerySection() /
   motionVideoSection() actually present on that page. Each links to
   its section's anchor. 68px black circle, white icon; hovers to
   brand pink. 48px on mobile (still inline in a row), with a tighter
   top margin there too. */
.icon-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

@media (max-width: 640px) {
  .icon-indicators {
    margin-top: var(--space-md);
  }
}

.icon-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--color-black);
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

/* Override the site-wide a::after animated underline and a:hover color
   shift (see the base `a` rules above) -- this is a solid icon button,
   not a text link, so it keeps a flat white icon on black/pink with no
   underline in either state. */
.icon-indicator::after {
  content: none;
}

.icon-indicator:hover,
.icon-indicator:focus-visible {
  background-color: var(--color-brand);
  color: #ffffff;
}

.icon-indicator__icon {
  width: 34px;
  height: 34px;
  stroke: currentColor;
}

@media (max-width: 640px) {
  .icon-indicator {
    width: 48px;
    height: 48px;
  }

  .icon-indicator__icon {
    width: 24px;
    height: 24px;
  }
}


/* Icon circle */

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--color-text);
  border-radius: 999px;
  color: var(--color-text);
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-circle::after {
  content: none;
}

.icon-circle__arrow {
  width: 50%;
  height: calc(50% * 20 / 36);
  transform: rotate(-45deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-circle:hover,
.icon-circle:focus-visible {
  color: var(--color-brand);
  border-color: var(--color-brand);
  transform: scale(1.08);
}

.icon-circle:hover .icon-circle__arrow,
.icon-circle:focus-visible .icon-circle__arrow {
  transform: rotate(0deg);
}

/* Icon circle modifier: back arrow (points left, resting up-left) */

.icon-circle--back .icon-circle__arrow {
  transform: scaleX(-1) rotate(-45deg);
}

.icon-circle--back:hover .icon-circle__arrow,
.icon-circle--back:focus-visible .icon-circle__arrow {
  transform: scaleX(-1) rotate(0deg);
}

/* Forms */

.field {
  display: block;
}

.field + .field {
  margin-top: var(--space-md);
}

.field__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.field__input,
.field__textarea {
  display: block;
  width: 100%;
  padding: 0.85em 1em;
  border: 1px solid var(--color-border);
  border-radius: 0.6em;
  background-color: var(--color-bg);
  transition: border-color 0.2s ease;
}

.field__textarea {
  min-height: 9rem;
  resize: vertical;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--color-text-muted);
}

.field__input:hover,
.field__textarea:hover {
  border-color: var(--color-text-muted);
}

.field__input:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--color-brand);
}

.field__input:focus-visible,
.field__textarea:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.field__message {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* Error state */
.field--error .field__input,
.field--error .field__textarea {
  border-color: #d13c3c;
}

.field--error .field__message {
  color: #d13c3c;
}

/* Disabled state */
.field__input:disabled,
.field__textarea:disabled {
  background-color: var(--color-gray-light);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* Site header */

.site-header {
  padding-block: var(--space-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__wordmark {
  font-size: var(--text-h5);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.site-header__wordmark::after {
  content: none;
}

.site-header__wordmark:hover,
.site-header__wordmark:focus-visible {
  color: var(--color-brand);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* Site footer */

.site-footer {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  margin-top: var(--space-xl);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: calc(var(--space-lg) / 2);
  border-top: 5px solid var(--color-black);
}

.site-footer__copyright {
  font-weight: 700;
  color: var(--color-black);
}

.site-footer__top {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: auto;
  font-weight: 700;
  color: var(--color-black);
  text-decoration: none;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer__top:hover,
.site-footer__top:focus-visible {
  color: var(--color-brand);
}

.site-footer__top-icon {
  width: 0.7em;
  height: 0.7em;
}

/* Back to Top link is desktop/tablet only -- not enough footer room on
   mobile to justify it next to the copyright line. */
@media (max-width: 640px) {
  .site-footer__top {
    display: none;
  }
}

/* Case study hero -- desktop-only full-bleed background image + dark
   overlay behind the nav, page title/subtitle/back-arrow, and Brief/Info,
   with all of that content flipped to white text. Opt-in per page via the
   `heroImage` front matter variable (see base.html) -- pages that don't
   set it render normally, untouched. Mobile always renders as a normal
   white page; this entire block is gated behind the desktop breakpoint.

   The .case-study-hero wrapper is closed right after Brief/Info by
   calling heroEnd() (see case-study-page.html) -- numbered sections and
   everything else below Brief/Info render outside this wrapper as
   normal black-on-white content, not affected by the white-text/dark
   overlay rules below. */

.case-study-hero {
  position: relative;
}

.case-study-hero__bg,
.case-study-hero__overlay {
  display: none;
}

@media (min-width: 1025px) {
  /* Breathing room so the dark zone doesn't cut off flush against
     Brief/Info's last line -- extends the image/overlay a bit past the
     content before the page returns to white. */
  .case-study-hero__content {
    padding-bottom: calc(var(--space-lg) * 2);
  }
}

@media (min-width: 1025px) {
  .case-study-hero__bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
  }

  .case-study-hero__overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(0, 0, 0, 0.55);
  }

  /* Color flip: header, page title row, and everything Brief/Info
     renders, all forced to white text / white lines. Scoped under
     .case-study-hero so no other page is affected. */

  .case-study-hero .site-header__wordmark,
  .case-study-hero .nav-link,
  .case-study-hero .page-title,
  .case-study-hero main h3,
  .case-study-hero .section-heading,
  .case-study-hero .entry-list__name,
  .case-study-hero .entry-list__detail,
  .case-study-hero p {
    color: #ffffff;
  }

  .case-study-hero .section-heading {
    border-bottom-color: #ffffff;
  }

  .case-study-hero .icon-circle {
    color: #ffffff;
    border-color: #ffffff;
  }

  .case-study-hero .icon-circle:hover,
  .case-study-hero .icon-circle:focus-visible {
    color: var(--color-brand);
    border-color: var(--color-brand);
  }

  .case-study-hero .site-header__wordmark:hover,
  .case-study-hero .site-header__wordmark:focus-visible,
  .case-study-hero .nav-link:hover,
  .case-study-hero .nav-link:focus-visible {
    color: var(--color-brand-hover);
  }
}

/* Social links */

.social-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.social-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background-color: var(--color-brand);
  color: #ffffff;
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-links__item::after {
  content: none;
}

.social-links__item svg {
  width: 46%;
  height: 46%;
}

.social-links__item:hover,
.social-links__item:focus-visible {
  color: #ffffff;
  background-color: var(--color-brand-hover);
  transform: scale(1.08);
}

/* Page title */

.page-title {
  padding-top: 3rem;
  padding-bottom: var(--space-lg);
}

/* The back-arrow circle is anchored from the TOP of the row
   (align-items: flex-start) and nudged down with a fixed margin-top,
   rather than centered against the row's own height. Centering against
   the row breaks the moment title length changes: a two-line title
   ("Beretta<br>Farms") makes the row roughly twice as tall as a
   single-line title ("Nike"), so centering puts the icon at a different
   height depending on how many lines the title happens to wrap to.
   Anchoring from the top and nudging down a fixed amount keeps the icon
   at the same spot regardless of line count -- it's the same math on
   every breakpoint, just using each breakpoint's own H1 size. */
.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  width: 100%;
  min-width: 0;
}

.page-title-row .page-title {
  padding-bottom: 0;
  min-width: 0;
}

.page-title-row .icon-circle {
  flex-shrink: 0;
  /* Offset = .page-title's own padding-top (3rem) + half the gap between
     the H1's first-line height (mobile: 3.052rem font-size) and the
     icon's own 3rem height. */
  margin-top: calc(3rem + (3.052rem * 1.05 - 3rem) / 2);
}

@media (min-width: 641px) {
  .page-title-row .icon-circle {
    /* Same formula, desktop/tablet H1 size (6.104rem). */
    margin-top: calc(3rem + (6.104rem * 1.05 - 3rem) / 2);
  }
}

/* Entry list — shared row pattern used everywhere a list of
   "name + right-aligned label, with a muted detail line below" shows
   up: Experience, Awards, Education, Certifications, Leadership
   Capabilities, Hard Skills, AI Skills (About) and Recent Stuff,
   Archives (Work). One system, one set of classes. */

.entry-list {
  list-style: none;
}

.entry-list__item {
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.entry-list__item:first-child {
  padding-top: 0;
}

.entry-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.entry-list__item > a {
  display: block;
  color: var(--color-text);
}

.entry-list__item > a::after {
  content: none;
}

.entry-list__item > a:hover,
.entry-list__item > a:focus-visible {
  color: var(--color-brand);
}

.entry-list__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  font-weight: 700;
}

.entry-list__label {
  flex: 0 0 auto;
  font-weight: 700;
  white-space: nowrap;
}

.entry-list__detail {
  display: block;
  margin-top: 0.15em;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* Entry list modifier: case study row (image, heading, description,
   arrow-circle link) — same base row rules as .entry-list__item above,
   laid out as a 4-column grid instead of the default two-line stack. */

.entry-list__item--case-study {
  padding-block: var(--space-md);
}

.entry-list__item--case-study:first-child {
  padding-top: 0;
}

.entry-list__item--case-study:last-child {
  padding-bottom: 0;
}

.entry-list__item--case-study > a {
  display: grid;
  grid-template-columns: 6.625rem 1fr 1fr auto;
  align-items: center;
  gap: var(--space-md);
}

.entry-list__img {
  width: 6.625rem;
  height: 6.625rem;
  margin: 0;
}

.entry-list__heading h3 {
  margin: 0;
}

.entry-list__heading .text-muted {
  margin-top: 0;
  color: var(--color-black);
  font-weight: 700;
}

.entry-list__desc {
  max-width: 66%;
  margin-inline: auto;
  color: var(--color-black);
}

@media (max-width: 1024px) {
  .entry-list__item--case-study > a {
    grid-template-columns: 4.5rem 1fr auto;
  }

  .entry-list__img {
    width: 4.5rem;
    height: 4.5rem;
  }

  .entry-list__desc {
    display: none;
  }
}

@media (max-width: 640px) {
  .entry-list__item--case-study > a {
    grid-template-columns: 3.5rem 1fr auto;
    gap: var(--space-sm);
  }

  .entry-list__img {
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* About page mobile spacing */
@media (max-width: 640px) {
  .about-education-heading {
    margin-top: var(--space-md);
  }
}

/* Text selection */
::selection {
  background-color: var(--color-brand);
  color: #ffffff;
}

/* Custom cursor */

@media (hover: hover) and (pointer: fine) {
  .cursor-ring {
    width: 60px;
    height: 60px;
    border-radius: 100%;
    border: 1px solid var(--color-brand);
    transition: width 0.2s ease-out, height 0.2s ease-out, opacity 0.2s ease-out;
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 9999;
  }

  .cursor-dot {
    width: 5px;
    height: 5px;
    border-radius: 100%;
    background-color: var(--color-brand);
    opacity: 0.3;
    position: fixed;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, opacity 0.3s;
  }

  .cursor-ring--hover {
    width: 120px;
    height: 120px;
    opacity: 0.5;
  }

  .cursor-dot--hover {
    width: 25px;
    height: 25px;
    opacity: 0.5;
  }
}

/* Background noise */

.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.02;
}

/* Mobile menu -- hamburger toggle (header) + full-screen overlay menu.
   The toggle replaces .site-header__nav below 640px (same breakpoint
   used everywhere else on the site); the overlay itself is black
   background / white text+lines / brand-pink close X, per spec, and is
   built the same way as the shared lightboxes (is-open + aria-hidden
   toggled by js/mobile-menu.js, Escape closes, focus moves to the
   close button on open and back to the toggle on close). */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.menu-toggle__line {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-text);
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle:hover .menu-toggle__line,
.menu-toggle:focus-visible .menu-toggle__line {
  background-color: var(--color-brand);
}

/* Case study hero pages flip the header to white text/lines -- the
   hamburger's lines need to follow suit there, same as .nav-link and
   the wordmark do (see .case-study-hero rules below). */
.case-study-hero .menu-toggle__line {
  background-color: #ffffff;
}

.case-study-hero .menu-toggle:hover .menu-toggle__line,
.case-study-hero .menu-toggle:focus-visible .menu-toggle__line {
  background-color: var(--color-brand-hover);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  background-color: var(--color-black);
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu__wordmark {
  color: #ffffff;
}

.mobile-menu__wordmark:hover,
.mobile-menu__wordmark:focus-visible {
  color: var(--color-brand);
}

.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-brand);
  cursor: pointer;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-close:hover,
.menu-close:focus-visible {
  color: var(--color-brand-hover);
}

.menu-close__icon {
  width: 100%;
  height: 100%;
}

/* .mobile-menu__title visually matches the site's h1 treatment (this
   overlay is mobile-only, so it always uses the mobile h1 size -- see
   "Mobile h1" above), but is deliberately NOT a real <h1> since the
   page underneath already has its own (the actual page title in
   <main>) -- two <h1>s on one page is an accessibility/SEO problem.
   role="heading" aria-level="2" on the element itself (see base.html)
   keeps it announced as a heading in the accessibility tree without
   claiming the page's single <h1>. */
.mobile-menu__title {
  padding-bottom: var(--space-xs);
  border-bottom: 5px solid #ffffff;
  font-size: 3.052rem;
  font-weight: 700;
  line-height: var(--leading-h1);
  letter-spacing: -1px;
  color: #ffffff;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-md);
}

.mobile-menu__link {
  padding-block: var(--space-sm);
  font-size: var(--text-h3);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.mobile-menu__link::after {
  content: none;
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
  color: var(--color-brand);
}

.mobile-menu__footer {
  margin-top: auto;
  padding-top: var(--space-lg);
}

.mobile-menu__copyright {
  font-weight: 700;
  color: #ffffff;
}

@media (max-width: 640px) {
  .site-header__nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}
