/*──────────────────────────────────────────────────────────
  PAGES — shared components for Work / Resources /
  About / Contact. Same visual language as the rest of the site: same
  color tokens, same .r/.stg reveal system, same .btn/.service-cta.
──────────────────────────────────────────────────────────*/

/*──────────────────────────────────────────────────────────
  PAGE HERO
──────────────────────────────────────────────────────────*/
/*──────────────────────────────────────────────────────────
  PAGE HERO
  Single nav-clearance padding (breadcrumb now lives inside this
  section, not a separate wrapper above it — see page-hero.php for why
  that split was the actual cause of the empty-space bug). Height is
  viewport-based per spec: ~55vh desktop, 40vh tablet, 35vh mobile.
──────────────────────────────────────────────────────────*/
.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding: 5.5rem clamp(1.5rem, 5vw, 4rem) 2.5rem;
  overflow: hidden;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 50% at 22% 15%, rgba(0,175,193, .16), transparent 60%),
    radial-gradient(ellipse 45% 40% at 82% 70%, rgba(0,127,147, .12), transparent 60%);
}
.page-hero-bg::before {
  /* Minimal glow — a single soft blurred blob, not a spotlight. */
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  width: 36rem;
  height: 36rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0,175,193, .1), transparent 70%);
  filter: blur(40px);
}
.page-hero-bg::after {
  /* Very subtle noise — a tiny tiled SVG turbulence texture, not a
     downloaded image asset, so this costs nothing meaningful to load. */
  content: '';
  position: absolute;
  inset: 0;
  opacity: .025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 1024px) {
  .page-hero { min-height: 40vh; }
}
@media (max-width: 640px) {
  .page-hero { min-height: 35vh; padding-top: 5rem; }
}

.page-hero-title {
  font-family: var(--font-display);
  font-size:clamp(2.29rem,4.68vw,3.61rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: var(--white);
  max-width: 900px;
}
.page-hero-intro {
  margin-top: 1.3rem;
  max-width: 620px;
  font-size:clamp(0.88rem,1.25vw,0.94rem);
  line-height: 1.75;
  color: var(--gray-500);
}

/*──────────────────────────────────────────────────────────
  PREMIUM CARD
  Reusable "static premium card" component — glass surface, soft
  border, elevation + border-glow + icon/title micro-motion on hover
  only (no flip, no rotate, no auto-play). Used for Team disciplines,
  Culture values, and the About page's Process steps; the same classes
  work anywhere a card grid like this is needed.
──────────────────────────────────────────────────────────*/
.premium-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.premium-card {
  position: relative;
  padding: 2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, .025);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .07);
  overflow: hidden;
  transition: transform .5s var(--ease-expo), border-color .5s, box-shadow .5s var(--ease-expo);
}
.premium-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .55);
}
.premium-card-glow {
  position: absolute;
  inset: -45% -45% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--blue-light), transparent 70%);
  opacity: 0;
  filter: blur(32px);
  transition: opacity .5s var(--ease-expo);
  pointer-events: none;
}
.premium-card:hover .premium-card-glow {
  opacity: .22;
}
.premium-card-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 1rem;
  position: relative;
  transition: transform .4s var(--ease-spring);
}
.premium-card:hover .premium-card-icon {
  transform: translateY(-3px) scale(1.08);
}
.premium-card-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, .14);
  margin-bottom: .5rem;
  position: relative;
}
.premium-card-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--white);
  margin-bottom: .6rem;
  letter-spacing: -.01em;
  transition: transform .4s var(--ease-expo);
}
.premium-card:hover .premium-card-title {
  transform: translateX(3px);
}
.premium-card-text {
  position: relative;
  font-size: .87rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/*──────────────────────────────────────────────────────────
  STAR RATING
──────────────────────────────────────────────────────────*/
.star-rating {
  display: inline-flex;
  gap: 2px;
  margin-bottom: .8rem;
}
.star {
  font-size: .82rem;
  color: rgba(255, 255, 255, .15);
}
.star-filled {
  color: #FBBF24;
}

/*──────────────────────────────────────────────────────────
  WORK / PORTFOLIO
──────────────────────────────────────────────────────────*/
.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 2.5rem 0 3rem;
}
.work-filter-btn {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-500);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 100px;
  padding: .6rem 1.3rem;
  transition: all .3s var(--ease-expo);
}
.work-filter-btn:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, .3);
}
.work-filter-btn.active {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}
.case-study-card {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: border-color .4s var(--ease-expo), transform .4s var(--ease-expo), opacity .3s, visibility 0s;
}
.case-study-card:hover {
  border-color: rgba(255, 255, 255, .2);
  transform: translateY(-4px);
}
.case-study-card.is-hidden {
  display: none;
}
.case-study-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.case-study-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-expo);
}
.case-study-card:hover .case-study-media img {
  transform: scale(1.05);
}
.case-study-body {
  padding: 1.5rem;
}
.case-study-tag {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: .6rem;
}
.case-study-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: .8rem;
}
.case-study-row {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--gray-500);
  margin-bottom: .6rem;
}
.case-study-row strong {
  color: var(--gray-400);
  font-weight: 600;
}
.case-study-tech {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1rem;
}
.case-study-chip {
  font-size: .72rem;
  padding: .3rem .7rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, .05);
  color: var(--gray-500);
}
.case-study-results {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: .85rem;
  color: var(--emerald);
  font-weight: 600;
}

/*──────────────────────────────────────────────────────────
  RESOURCES
──────────────────────────────────────────────────────────*/
.resource-category {
  margin-bottom: 4rem;
}
.resource-category:last-child {
  margin-bottom: 0;
}
.resource-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  scroll-margin-top: 7rem;
}
.resource-category-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
}
.resource-category-head span {
  font-size: .8rem;
  color: var(--gray-500);
}
.resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.resource-card {
  padding: 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: border-color .4s var(--ease-expo), transform .4s var(--ease-expo);
}
.resource-card:hover {
  border-color: rgba(255, 255, 255, .18);
  transform: translateY(-3px);
}
.resource-card-icon {
  font-size: 1.3rem;
  margin-bottom: .8rem;
  display: block;
}
.resource-card-tag {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gray-400);
  margin-bottom: .5rem;
  display: block;
}
.resource-card-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.resource-card-excerpt {
  font-size: .85rem;
  line-height: 1.65;
  color: var(--gray-500);
}

/*──────────────────────────────────────────────────────────
  ABOUT — values / team / timeline / why-us
──────────────────────────────────────────────────────────*/
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.value-card {
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .06);
}
.value-card-icon {
  font-size: 1.4rem;
  margin-bottom: .9rem;
  display: block;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}
.value-card p {
  font-size: .87rem;
  line-height: 1.65;
  color: var(--gray-500);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.team-card {
  text-align: center;
  padding: 1.75rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .06);
}
.team-avatar {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--purple));
}
.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}
.team-role {
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: .25rem;
}

.timeline {
  margin-top: 2.5rem;
  max-width: 760px;
}
.timeline-item {
  display: flex;
  gap: 2rem;
  padding-bottom: 2.4rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 4.5rem;
  top: 1.8rem;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, .08);
}
.timeline-item:last-child::before {
  display: none;
}
.timeline-year {
  flex-shrink: 0;
  width: 4.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--blue-light);
  padding-top: .1rem;
}
.timeline-copy h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .4rem;
}
.timeline-copy p {
  font-size: .88rem;
  line-height: 1.65;
  color: var(--gray-500);
  max-width: 520px;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.why-us-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why-us-icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,175,193, .12);
  font-size: 1.1rem;
}
.why-us-item h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .3rem;
}
.why-us-item p {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--gray-500);
}

/*──────────────────────────────────────────────────────────
  CONTACT
──────────────────────────────────────────────────────────*/
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
@media (max-width: 560px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}
.contact-form label {
  display: block;
  font-size: .78rem;
  color: var(--gray-400);
  margin-bottom: .45rem;
  font-weight: 600;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color .3s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}
.contact-form button {
  justify-self: start;
  margin-top: .5rem;
}
.contact-form-note {
  font-size: .78rem;
  color: var(--gray-500);
  margin-top: -.3rem;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 560px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}
.contact-info-card {
  display: block;
  padding: 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .07);
  text-decoration: none;
  transition: border-color .3s, transform .3s var(--ease-expo);
}
.contact-info-card:hover {
  border-color: rgba(255, 255, 255, .2);
  transform: translateY(-3px);
}
.contact-info-icon {
  font-size: 1.2rem;
  margin-bottom: .6rem;
  display: block;
}
.contact-info-label {
  display: block;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  font-weight: 700;
  margin-bottom: .3rem;
}
.contact-info-value {
  display: block;
  font-size: .92rem;
  color: var(--white);
  font-weight: 600;
}

.contact-hours-list {
  list-style: none;
  font-size: .88rem;
  color: var(--gray-500);
  display: grid;
  gap: .5rem;
  margin-bottom: 2rem;
}
.contact-hours-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  padding-bottom: .5rem;
}
.contact-hours-list span:last-child {
  color: var(--white);
  font-weight: 600;
}

.contact-map-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gray-500);
  font-size: .85rem;
  padding: 1.5rem;
}

/*──────────────────────────────────────────────────────────
  PAGE HERO — COMPOSITIONS
  One component, four arrangements. Every page that used to share the
  same centred stack now has its own composition; they stay a family
  through the shared type scale, the .r entrance system and the
  atmosphere behind them.

  Motion note: entrances animate opacity and transform only, and the
  decorative layers are gradients rather than blurred elements, so all
  of this stays on the compositor.
──────────────────────────────────────────────────────────*/

.page-hero__inner { position: relative; z-index: 1; width: 100%; }
.page-hero__copy { max-width: 46rem; }

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.2rem;
}
.page-hero__note {
  margin-top: 1.4rem;
  font-size: .78rem;
  letter-spacing: .04em;
  color: #6f7079;
}

/*── CENTER — the editorial default ────────────────────────*/
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__copy { max-width: 52rem; margin-inline: auto; }
.page-hero--center .page-hero-intro { margin-inline: auto; }
.page-hero--center .page-hero__actions { justify-content: center; }

/*── SPLIT — Contact ───────────────────────────────────────
  Copy left, a small factual panel right. The panel answers the two
  questions people actually have before writing in (how fast will they
  reply, what does the first call cost), which is a better use of the
  space than a decorative graphic. */
.page-hero--split .page-hero__inner {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.page-hero__panel {
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.page-hero__panel-row { padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.page-hero__panel-row:first-child { padding-top: 0; }
.page-hero__panel-row span {
  display: block;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7c7d86;
}
.page-hero__panel-row strong {
  display: block;
  margin-top: .4rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--white);
}
.page-hero__panel-row small { display: block; margin-top: .2rem; font-size: .76rem; color: #8b8c95; }
.page-hero__panel-pulse {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.1rem;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b9bbc4;
}
.page-hero__panel-pulse i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(0,168,161, .5);
  animation: heroPulse 2.6s ease-out infinite;
}
@keyframes heroPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,168,161, .45); }
  70%  { box-shadow: 0 0 0 11px rgba(0,168,161, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0,168,161, 0); }
}

/*── MOSAIC — Work ─────────────────────────────────────────
  Three project stills at different scales and offsets. Asymmetric on
  purpose: a tidy 3-up grid would read as a card list, which is what
  the page below already is. */
.page-hero--mosaic .page-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.page-hero__mosaic {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  min-height: 22rem;
}
.page-hero__shot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  background: #0a0a0c;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .85);
  animation: heroFloat 9s ease-in-out infinite;
}
.page-hero__shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-hero__shot figcaption {
  position: absolute;
  left: .7rem;
  bottom: .7rem;
  padding: .3rem .65rem;
  border-radius: 99px;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(5, 5, 5, .6);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.page-hero__shot--1 { grid-row: span 2; aspect-ratio: 3 / 4; align-self: center; }
.page-hero__shot--2 { aspect-ratio: 4 / 3; transform: translateY(-1.2rem); animation-delay: -3s; }
.page-hero__shot--3 { aspect-ratio: 4 / 3; transform: translateY(.6rem); animation-delay: -6s; }
@keyframes heroFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

/*── INDEX — Services ──────────────────────────────────────
  A numbered contents list, set like a masthead index. Doubles as
  navigation: every row is a real link to that service page. */
.page-hero--index .page-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.page-hero__index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  counter-reset: none;
}
.page-hero__index li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.page-hero__index li span {
  flex: 0 0 auto;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--blue);
}
.page-hero__index li a {
  flex: 1;
  display: block;
  padding: .72rem 0;
  font-size: clamp(.95rem, 1.3vw, 1.08rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: #d3d4da;
  text-decoration: none;
  transition: color .35s var(--ease-expo), padding-left .35s var(--ease-expo);
}
.page-hero__index li a:hover,
.page-hero__index li a:focus-visible { color: var(--white); padding-left: .6rem; }

/*── RESPONSIVE ────────────────────────────────────────────*/
@media (max-width: 980px) {
  .page-hero--split .page-hero__inner,
  .page-hero--mosaic .page-hero__inner,
  .page-hero--index .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero { min-height: auto; padding-top: 6.5rem; padding-bottom: 3.5rem; }
  .page-hero__mosaic { min-height: 16rem; }
}
@media (max-width: 640px) {
  /* The mosaic drops to two stills on phones — the third adds weight
     and download for almost no compositional benefit at this width. */
  .page-hero__shot--3 { display: none; }
  .page-hero__shot--1 { grid-row: span 1; aspect-ratio: 4 / 3; }
  .page-hero__shot--2 { transform: none; }
  .page-hero__panel { border-radius: 16px; }
  .page-hero__actions .btn { width: 100%; justify-content: center; }
}

/*── REDUCED MOTION ────────────────────────────────────────*/
@media (prefers-reduced-motion: reduce) {
  .page-hero__shot,
  .page-hero__panel-pulse i { animation: none; }
  .page-hero__index li a { transition: none; }
}

/*──────────────────────────────────────────────────────────
  PROJECTS & CASE STUDIES — PRESENTATION REFINEMENT
  Larger thumbnails, a firmer type hierarchy and hover states that
  actually respond. Appended last so these win over the base rules.
──────────────────────────────────────────────────────────*/

/* Larger cards: fewer per row, bigger images, more room between them. */
.work-grid { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: clamp(1.6rem, 3vw, 2.6rem); }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }

.case-study-card { border-radius: 20px; }
/* 16:10 → 4:3 gives roughly 20% more image area at the same width. */
.case-study-media { aspect-ratio: 4 / 3; position: relative; }
.case-study-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,5,5,.55));
  opacity: 0; transition: opacity .45s var(--ease-expo);
  pointer-events: none;
}
.case-study-card:hover .case-study-media::after { opacity: 1; }
.case-study-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,175,193,.45);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
.case-study-card:hover .case-study-media img { transform: scale(1.06); }
.case-study-body { padding: 1.6rem 1.5rem 1.7rem; }
.case-study-body h3,
.case-study-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.24;
}
.case-study-tag { color: var(--blue); font-weight: 700; }

/* Homepage project stack — slightly larger frame and a hover that
   reads on the image rather than only on the inner scale. */
.proj-img { aspect-ratio: 16 / 10; border-radius: 18px; }
.proj-img { transition: border-color .5s var(--ease-expo), box-shadow .5s var(--ease-expo); }
.proj-img:hover {
  border-color: rgba(0,175,193,.4);
  box-shadow: 0 40px 90px -35px rgba(0,0,0,.75);
}
.proj-title { letter-spacing: -.035em; }

@media (prefers-reduced-motion: reduce) {
  .case-study-card, .case-study-media img, .case-study-media::after, .proj-img { transition: none; }
  .case-study-card:hover { transform: none; }
  .case-study-card:hover .case-study-media img { transform: none; }
}

/* Work case studies: sharp, image-led editorial cards. */
.work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.work-grid .case-study-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 0;
  overflow: hidden;
  background: #0a0b0d;
  transform: none;
  transition: border-color .35s ease;
}
.case-study-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
}
.work-grid .case-study-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  overflow: hidden;
}
.work-grid .case-study-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,9,.08) 20%, rgba(5,7,9,.3) 54%, rgba(5,7,9,.96) 100%),
    linear-gradient(90deg, rgba(5,7,9,.42), transparent 65%);
  opacity: .78;
  pointer-events: none;
  transition: opacity .4s ease;
}
.work-grid .case-study-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: saturate(.86) contrast(1.04);
  transition: transform .55s ease, filter .4s ease;
}
.work-grid .case-study-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  color: #fff;
}
.work-grid .case-study-copy {
  max-width: 38rem;
  transform: translateY(2.25rem);
  transition: transform .4s ease;
}
.work-grid .case-study-tag {
  display: block;
  margin: 0 0 .75rem;
  color: rgba(255,255,255,.78);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.work-grid .case-study-title {
  margin: 0;
  max-width: 15ch;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
}
.work-grid .case-study-row {
  max-width: 52ch;
  margin: .85rem 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(.78rem, 1.1vw, .9rem);
  line-height: 1.55;
  opacity: 0;
  transform: translateY(.55rem);
  transition: opacity .3s ease .04s, transform .35s ease .04s;
}
.case-study-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 1.15rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(255,255,255,.36);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(.55rem);
  transition: opacity .3s ease .1s, transform .35s ease .1s;
}
.case-study-cta > span {
  font-size: 1rem;
  transition: transform .3s ease;
}
.work-grid .case-study-card:is(:hover, :focus-within) {
  border-color: rgba(255,255,255,.5);
  transform: none;
}
.work-grid .case-study-card:is(:hover, :focus-within) .case-study-media::after { opacity: 1; }
.work-grid .case-study-card:is(:hover, :focus-within) .case-study-media img {
  transform: scale(1.025);
  filter: saturate(.74) contrast(1.07);
}
.work-grid .case-study-card:is(:hover, :focus-within) .case-study-copy,
.work-grid .case-study-card:is(:hover, :focus-within) .case-study-row,
.work-grid .case-study-card:is(:hover, :focus-within) .case-study-cta {
  opacity: 1;
  transform: translateY(0);
}
.work-grid .case-study-card:is(:hover, :focus-within) .case-study-cta > span { transform: translateX(.25rem); }
.case-study-link:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid .case-study-card { aspect-ratio: 4 / 5; }
}
@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; gap: 1rem; }
  .work-grid .case-study-card { aspect-ratio: 4 / 5; min-height: 28rem; }
}
@media (hover: none), (max-width: 900px) {
  .work-grid .case-study-media::after { opacity: 1; }
  .work-grid .case-study-copy,
  .work-grid .case-study-row,
  .work-grid .case-study-cta { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .work-grid .case-study-card,
  .work-grid .case-study-media img,
  .work-grid .case-study-media::after,
  .work-grid .case-study-copy,
  .work-grid .case-study-row,
  .work-grid .case-study-cta,
  .work-grid .case-study-cta > span { transition: none; }
  .work-grid .case-study-card:is(:hover, :focus-within) .case-study-media img { transform: none; }
}


