/* ============================================
   Lindsey Connors — Portfolio
   Light, calm, editorial: white space, navy type,
   one indigo accent.
   ============================================ */

:root {
  --paper: #ffffff;
  --mist: #f5f7fb;
  --ink: #0d1b3e;
  --slate: #4f5d78;
  --line: #e3e8f0;
  --rule: #dde3ee;
  --iris: #3b3fd8;
  --iris-dark: #2a2db0;
  --iris-tint: #eceeff;

  --font: 'Mulish', system-ui, -apple-system, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Set to the nav's exact height in main.js so sections start right at its edge */
  scroll-padding-top: var(--nav-h, 65px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--slate);
  background: var(--paper);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--iris);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--iris);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  transition: background 0.2s var(--ease);
}

.button:hover { background: var(--iris-dark); }

.button--quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button--quiet:hover { background: var(--mist); }

.button--small {
  padding: 0.55rem 1.1rem;
  font-size: 0.9375rem;
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
}

.nav__logo {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a:not(.button) {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s var(--ease);
}

.nav__links a:not(.button):hover,
.nav__links a.active { color: var(--ink); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}

.nav__toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero__title {
  font-family: 'Plus Jakarta Sans', var(--font);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 15ch;
}

.hero__lede {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  line-height: 1.6;
  /* Sized in em so the text breaks into the same four lines at every width */
  max-width: 34.5em;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__visual {
  justify-self: end;
  width: 100%;
  max-width: 340px;
}

.hero__portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 8%;
  border-radius: 50%;
}

/* ---- Logos ----
   A label pinned left, with full-color marks looping through a
   full-width, softly ruled band. On hover the grid softens
   and a link to the work appears over it. */
.logos { padding-bottom: clamp(3rem, 6vw, 4.5rem); }

/* The label is pinned to the left of the band, aligned with the page
   content. Solid white runs well past the text before fading, so logos
   dissolve at a distance instead of right against the words. */
.logos__heading {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  margin: 0;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-right: 10rem;
  background: linear-gradient(90deg, var(--paper) 0, var(--paper) calc(100% - 6rem), rgba(255, 255, 255, 0));
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  pointer-events: none;
}

/* Full-bleed band: runs edge to edge, ruled top and bottom */
.logos__wall {
  position: relative;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

/* When the logos stand still, the label sits above them instead */
.logos__wall:not(.is-looping) .logos__heading {
  position: static;
  display: block;
  padding: 1.25rem 0 0;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  background: none;
}

/* Without JS (or with reduced motion): a still grid */
.logos__row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.logos__row li {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 1.5rem 1rem;
}

/* Logos keep their natural proportions; only the height is set */
.logo {
  height: var(--h, 32px);
  width: auto;
  max-width: none;
  flex-shrink: 0;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* With JS: an endless loop (copies and distance are set in main.js) */
.logos__wall.is-looping .logos__track {
  display: flex;
  width: max-content;
  animation: logos-loop 56s linear infinite;
}

.is-looping .logos__row { display: flex; }

.is-looping .logos__row li { width: 210px; }

.logos__wall.is-looping:hover .logos__track,
.logos__wall.is-looping:focus-within .logos__track { animation-play-state: paused; }

@keyframes logos-loop {
  to { transform: translateX(var(--loop-shift, -50%)); }
}

/* Logos with a case study are links: hovering one keeps it sharp and fades the rest */
.logos__link {
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
}

.logos__link .logo { transition: filter 0.3s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease); }

.logos__wall:has(.logos__link:hover) .logo,
.logos__wall:has(.logos__link:focus-visible) .logo { filter: blur(3px); opacity: 0.45; }

.logos__wall .logos__link:hover .logo,
.logos__wall .logos__link:focus-visible .logo {
  filter: none;
  opacity: 1;
  transform: scale(1.08);
}

/* ---- Sections ---- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }

.section__header {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* The logo band above already provides separation */
.work { padding-top: clamp(2rem, 4vw, 3rem); }

.section__title {
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  letter-spacing: -0.03em;
}

.section__sub {
  margin-top: 1rem;
  font-size: 1.1875rem;
  text-wrap: pretty;
}

/* ---- Case studies ---- */
.case + .case {
  margin-top: 3rem;
  padding-top: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}

.case__intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem 4rem;
  margin-bottom: 2.5rem;
}

.case__title {
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  letter-spacing: -0.025em;
}

.case__role {
  margin-top: 0.35rem;
  color: var(--slate);
}

.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.case__tags li {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--iris-dark);
  background: var(--iris-tint);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.case__desc {
  font-size: 1.1875rem;
  line-height: 1.6;
  max-width: 38rem;
}

.case__img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
}

.case__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case__img figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
}

.case__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.case__grid .case__img { aspect-ratio: 16 / 11; }

/* A square social post sits whole in the middle of the card */
.case__img--post video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 82%;
  width: auto;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 32px rgba(13, 27, 62, 0.14);
}

/* Mockups with lots of empty space around the device get zoomed in */
.case__img--zoom img { transform: translateY(-9.5%) scale(1.22); }

/* Wide shots sit in a fixed frame so mockups with lots of empty space stay compact */
.case__img--wide { aspect-ratio: 2 / 1; }

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stats__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.stats__item dd {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stats__item dt { font-size: 0.9375rem; }

.case__cta { margin-top: 2.5rem; }

/* ---- More work ---- */
.more {
  margin-top: 3rem;
  padding-top: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}

.more__title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.more__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.more__grid .case__img { aspect-ratio: 1; }

.more__link { display: block; border-radius: var(--radius); }

.more__link .case__img { transition: transform 0.3s var(--ease); }

.more__link:hover .case__img { transform: translateY(-4px); }

/* These exports have a faint edge; a slight zoom tucks it inside the frame.
   Multiply drops the logos' white backgrounds onto the card's tint */
.more__grid .case__img { background: #f7f9fc; }

.more__grid .case__img img { transform: scale(1.03); mix-blend-mode: multiply; }

/* ---- Case study pages ---- */
/* Bottom padding matches the 3rem gap above the stats */
.cs-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 3rem; }

.cs-back {
  display: inline-block;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
}

.cs-back:hover { color: var(--ink); }

.cs-hero__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem 4rem;
  margin-bottom: 2.5rem;
}

/* Intro text beside the lead image instead of above it */
.cs-hero__layout--split {
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  margin-bottom: 0;
}

.cs-hero__layout--split .cs-hero__lede { margin-top: 1.75rem; }

.cs-hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.cs-hero__lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.6;
  max-width: 38rem;
  text-wrap: pretty;
}

.cs-section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--rule);
}

/* Text stays in view on the left while the work scrolls past on the right */
.cs-section__layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.cs-section__text {
  position: sticky;
  top: 6rem;
}

.cs-section__title {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  letter-spacing: -0.025em;
}

/* Short rule separating two stories within one section's text */
.cs-divider {
  width: 3rem;
  margin: 1.5rem 0 0.5rem;
  border: 0;
  border-top: 1px solid #c9d1e0;
}

.cs-section__text p {
  margin-top: 1rem;
  text-wrap: pretty;
}

.cs-pdf {
  display: inline-block;
  margin-top: 1rem;
  color: var(--iris);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cs-pdf:hover { color: var(--iris-dark); }

/* An image that opens a PDF: lifts slightly and its label turns link-colored */
.cs-pdf-card { display: block; border-radius: var(--radius); }

.cs-pdf-card .case__img { height: 100%; transition: transform 0.3s var(--ease); }

.cs-pdf-card:hover .case__img { transform: translateY(-4px); }

.cs-pdf-card:hover figcaption { color: var(--iris); }

.cs-section__media {
  display: grid;
  gap: 1.25rem;
}

.cs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.cs-email { aspect-ratio: 9 / 16; }
.cs-email img { object-position: top; }

/* Vertical video: kept phone-sized, caption moved up so it clears the controls */
.cs-video {
  width: min(100%, 22rem);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

.cs-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-video figcaption {
  top: 1rem;
  bottom: auto;
}

/* Wix-style section: text runs across the top, the work spreads out below */
.cs-section__layout--stacked { grid-template-columns: 1fr; }

.cs-section__layout--stacked .cs-section__text {
  position: static;
  max-width: 42rem;
}

/* Booth and vertical video side by side at matching heights */
.cs-duo {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.cs-duo .cs-video { width: auto; margin: 0; }

/* Portrait poster beside a landscape photo at a shared height */
.cs-duo--poster { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

/* Laptop beside a phone: columns sized so both shots share a height */
.cs-duo--laptop { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }

/* Videos play inside a laptop frame; the inset matches the PNG's screen */
.cs-laptop { position: relative; }

.cs-laptop img { width: 100%; height: auto; }

.cs-laptop video {
  position: absolute;
  left: 11.875%;
  top: 11.917%;
  width: 76.25%;
  height: 76.17%;
  object-fit: cover;
  background: #000;
}

/* Device mockups have their own frame, so no card behind them */
.cs-device {
  width: min(100%, 34rem);
  margin-inline: auto;
}

.cs-device img { width: 100%; height: auto; }

/* The iPad PNG's shadow layer tints its whole canvas; fade the edges out */
.cs-device--fade img {
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}

/* Square social posts, shown as a pair */
.cs-square { aspect-ratio: 1; }

.cs-square video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tall hero composites sit whole in the frame; their background matches the card */
.cs-hero__img--contain img {
  object-fit: contain;
  transform: scale(1.35);
}

.cs-credits {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate);
}

/* A single phone mockup stays compact beside the intro */
.cs-hero__img--phone { padding: 2rem 0; }

.cs-hero__img--phone img {
  width: 55%;
  height: auto;
  margin-inline: auto;
}

.cs-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cs-grid--center { align-items: center; }

/* Current-generation iPhone drawn in CSS: thin even bezel, rounded
   corners, a light status bar and the Dynamic Island */
.phone {
  aspect-ratio: 9 / 19;
  padding: 3.5%;
  border-radius: 15% / 7.1%;
  background: #1c1d21;
  box-shadow:
    inset 0 0 0 1.5px #45474d,
    0 24px 40px -18px rgba(13, 27, 62, 0.35);
}

/* The phone rises out of a card and is cut off by its bottom edge,
   so the card can match the poster's height */
.phone-stage {
  display: flex;
  justify-content: center;
  aspect-ratio: 900 / 1238;
  padding-top: 11%;
}

/* In the hero the card is wider, so less of the phone shows */
.phone-stage--hero { aspect-ratio: 5 / 4; padding-top: 7%; }

.phone-stage--hero .phone--cropped { width: 46%; }

.phone--cropped {
  flex-shrink: 0;
  width: 70%;
  height: max-content;
}

.phone__screen {
  position: relative;
  height: 100%;
  padding-top: 13%;
  border-radius: 12% / 5.6%;
  overflow: hidden;
  background: #fff;
}

.phone__screen::before {
  content: "";
  position: absolute;
  top: 3.2%;
  left: 50%;
  width: 32%;
  height: 3.3%;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

/* Sized so a 9:16 screenshot fills the screen below the status bar
   exactly: no side crop and no empty space */
.phone--fit { aspect-ratio: 1000 / 1953; }

/* Status bar takes the emails' header blue so it runs up behind the island */
.phone--fit .phone__screen { background: #274ba5; }

.phone__screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* A simple Instagram-style post for the social phone */
.ig-post { font-size: clamp(0.6rem, 0.9vw, 0.75rem); color: #111; }

.ig-post__head {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 0.8em;
  font-weight: 600;
}

.ig-post__avatar {
  display: grid;
  place-items: center;
  width: 2.4em;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.ig-post__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Runs 2px past each side so Safari's sub-pixel rounding never leaves a
   white hairline between the video and the phone's bezel */
.ig-post__media {
  position: relative;
  margin-inline: -2px;
  overflow: hidden;
  background: #1d3e18;
}

.ig-post video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transform: scale(1.01);
}

.ig-post svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ig-post__actions {
  display: flex;
  gap: 0.9em;
  padding: 0.7em 0.8em 0.3em;
}

.ig-post__actions svg { width: 1.9em; }

.ig-post__save { margin-left: auto; display: flex; }

.ig-post__meta,
.ig-post__caption,
.ig-post__comments {
  padding: 0.15em 0.8em;
  line-height: 1.4;
}

.ig-post__comments { color: #737373; }



.ig-post__caption span { color: #00376b; }

/* Full-length page designs shown uncropped, tops aligned */
.cs-grid--top { align-items: start; }

.cs-full img { height: auto; }

/* Subtle edge for flat page designs that would otherwise melt into the page */
.cs-outline { border-radius: 6px; padding-top: 0.5rem; background: #fff; }

/* The homepage mockup has its own white margin at the top, so it needs less */
.cs-outline + .cs-outline { padding-top: 0.25rem; }

.cs-outline::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #d5dbe6;
  pointer-events: none;
}

/* Drops an image's white background onto the tile's tint */
.case__img img.blend { mix-blend-mode: multiply; }

/* Stand-in frames until the real work is added */
.cs-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border: 1px dashed #c9d1e0;
}

.cs-placeholder.cs-email { aspect-ratio: 9 / 16; }

.cs-placeholder figcaption {
  position: static;
  background: none;
  color: var(--slate);
  font-weight: 400;
}

.cs-next { border-top: 1px solid var(--rule); }

.cs-next__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.cs-next__label { font-size: 0.9375rem; }

.cs-next__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.cs-next__link:hover .cs-next__title { color: var(--iris); }

/* ---- Process ---- */
.process { background: var(--mist); }

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.process__step { position: relative; }

/* Thin line joining the steps into one sequence */
.process__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 52px;
  right: -1rem;
  height: 1px;
  background: #cdd4e2;
}

.process__number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px #cdd4e2;
  color: var(--iris);
  font-weight: 600;
  font-size: 0.9375rem;
}

.process__step-title {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

.process__step p {
  margin-top: 0.6rem;
  font-size: 1rem;
}

/* ---- Art ---- */
/* Post-it pinwheel: video and intro side by side, the steps in a row below */
.pinwheel {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.25rem clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.pinwheel__video {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
}

.pinwheel__video video { display: block; width: 100%; height: auto; }

.pinwheel__title { font-size: 1.5rem; letter-spacing: -0.02em; }

.pinwheel__text p { margin-top: 0.75rem; text-wrap: pretty; }

.pinwheel__steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  counter-reset: step;
}

.pinwheel__steps li {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 3 / 4;
  counter-increment: step;
}

.pinwheel__steps img { width: 100%; height: 100%; object-fit: cover; }

.pinwheel__steps li::after {
  content: counter(step);
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  display: grid;
  place-items: center;
  width: 1.6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
}

@media (max-width: 720px) {
  .pinwheel { grid-template-columns: 1fr; }
  .pinwheel__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.art__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 2.5rem;
  background: var(--mist);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}

.art__filter {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.art__filter:hover { color: var(--ink); }

.art__filter.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(13, 27, 62, 0.12);
}

.art__masonry {
  columns: 3;
  column-gap: 1.25rem;
}

.art__item {
  display: block;
  width: 100%;
  margin-bottom: 1.25rem;
  break-inside: avoid;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
}

.art__item.hidden { display: none; }

.art__item img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--mist);
}

.art__caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.25rem 0;
  font-size: 0.9375rem;
}

.art__caption-title { color: var(--ink); font-weight: 500; }
.art__caption-cat { color: var(--slate); }

.art__item:hover .art__caption-title { color: var(--iris); }

/* ---- About ---- */
.about { border-top: 1px solid var(--line); }

.about__layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about__text {
  margin-top: 1.25rem;
  max-width: 36rem;
}

.about__text:first-of-type { margin-top: 1.5rem; }

.about__skills-title {
  margin-top: 2.25rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.about__skills li {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.9375rem;
  color: var(--ink);
}

/* ---- Contact ---- */
.contact {
  background: var(--ink);
  color: #b7c1d6;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 5rem;
  align-items: end;
}

.contact__title {
  color: #fff;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 12ch;
}

.contact__text {
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  max-width: 28rem;
}

.contact__link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 0.2s var(--ease);
}

.contact__links li:first-child .contact__link { border-top: 1px solid rgba(255, 255, 255, 0.14); }

.contact__link-label { font-size: 0.9375rem; }

.contact__link-value {
  color: #fff;
  font-weight: 500;
  font-size: 1.125rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.contact__link:hover .contact__link-value { color: #aeb2ff; }

.contact :focus-visible { outline-color: #aeb2ff; }

/* ---- Footer ---- */
.footer {
  padding: 2rem 0;
  font-size: 0.9375rem;
}

.footer__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer__name { color: var(--ink); font-weight: 600; }

.footer__links { display: flex; gap: 1.5rem; }

.footer__links a:hover { color: var(--ink); }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 5rem;
  background: rgba(255, 255, 255, 0.97);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}

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

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 100%;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 60px -20px rgba(13, 27, 62, 0.3);
}

.lightbox__caption {
  margin-top: 1rem;
  color: var(--ink);
  font-weight: 500;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
  font-size: 1.25rem;
  transition: background 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: var(--line); }

.lightbox__close { top: 1.25rem; right: 1.25rem; font-size: 1.5rem; }
.lightbox__prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* ---- Page-load moment (hero only) ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > *,
  .hero__visual {
    animation: rise 0.8s var(--ease) both;
  }
  .hero__lede { animation-delay: 0.08s; }
  .hero__actions { animation-delay: 0.16s; }
  .hero__visual { animation-delay: 0.1s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- Tablet ---- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__title { max-width: 16ch; }
  .hero__visual { order: -1; justify-self: start; max-width: 200px; }

  .case__intro { grid-template-columns: 1fr; gap: 1.25rem; }

  .cs-hero__layout,
  .cs-section__layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .cs-section__text { position: static; }
  .cs-duo { grid-template-columns: 1fr; }
  .cs-duo .cs-video { width: min(100%, 22rem); margin-inline: auto; }

  .process__steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .process__step::after { display: none; }

  .art__masonry { columns: 2; }

  .about__layout { grid-template-columns: 1fr; }
  .about__image { max-width: 420px; }

  .contact__layout { grid-template-columns: 1fr; }
}

/* ---- Mobile ---- */
@media (max-width: 720px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav__links.open { display: flex; }

  .nav__links li { width: 100%; }

  .nav__links a:not(.button) {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.0625rem;
  }

  .nav__links .button { margin-top: 0.75rem; }

  .logos__heading {
    position: static;
    display: block;
    padding: 1.25rem var(--gutter) 0;
    background: none;
  }

  .logos__row { grid-template-columns: repeat(2, 1fr); }
  .logos__row li { min-height: 92px; padding: 1rem; }
  .is-looping .logos__row li { width: 160px; }
  .logo { height: calc(var(--h, 32px) * 0.8); }

  .case__grid { grid-template-columns: 1fr; }

  .case__img--wide { aspect-ratio: 4 / 3; }

  .stats { grid-template-columns: 1fr; gap: 1.5rem; }

  .more__grid { grid-template-columns: 1fr 1fr; }

  .process__steps { grid-template-columns: 1fr; }

  .art__filters { border-radius: var(--radius); }

  .contact__link { flex-direction: column; gap: 0.25rem; }
  .contact__link-value { text-align: left; }

  .lightbox { padding: 4.5rem 1rem 5rem; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 1.25rem; transform: none; }
}

@media (max-width: 420px) {
  .art__masonry { columns: 1; }
}
