/* ==========================================================================
   Abe Atiya — portfolio
   Built on the existing portfolio system: white ground, one indigo ink,
   Nunito Sans headings, geometric body, full-bleed work with zero gutter.
   Deliberate departures (flagged): a larger hero statement, a looping
   hero video, hairline rules, and gentle motion that respects
   prefers-reduced-motion.
   ========================================================================== */

@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-var-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400i-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour: one ink. Grey only mutes. */
  --ink: #2727a4;
  --ink-deep: #1c1c80;
  --ink-soft: rgb(39 39 164 / 0.72);
  --ink-hair: rgb(39 39 164 / 0.16);
  --bg: #ffffff;
  --bg-footer: #ededed;
  --grey-nav: #333333;
  --grey-micro: #666666;
  --grey-muted: #85858f;
  --on-ink: #ffffff;

  /* Type */
  --font-heading: "Nunito Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text-display: clamp(2.35rem, 1.2rem + 4.2vw, 4.6rem);
  --text-h1: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  --text-h2: clamp(1.6rem, 1.3rem + 1.1vw, 2.25rem);
  --text-h3: 1.5rem;
  --text-lede: clamp(1.15rem, 1rem + 0.55vw, 1.45rem);
  --text-body: 1.0625rem;
  --text-small: 0.875rem;
  --text-micro: 0.75rem;

  /* Space */
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem);
  --container: 1240px;
  --measure: 40rem;
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --header-h: 88px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

::selection {
  background: var(--ink);
  color: var(--on-ink);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--on-ink);
  font-size: var(--text-small);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

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

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

/* ---------- Type roles ---------- */

.display,
.h1,
.h2,
.h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.display {
  font-size: var(--text-display);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.h1 {
  font-size: var(--text-h1);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: var(--text-h2);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.h3 {
  font-size: var(--text-h3);
  line-height: 1.25;
  font-weight: 700;
}

.lede {
  font-size: var(--text-lede);
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}

.prose {
  max-width: var(--measure);
  text-wrap: pretty;
}
.prose > * + * {
  margin-top: 1.15em;
}
.prose strong {
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-micro);
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.35s var(--ease);
}
.text-link:hover {
  background-size: 0% 1px;
  background-position: 100% 100%;
}
.text-link .arrow {
  transition: transform 0.35s var(--ease);
}
.text-link:hover .arrow {
  transform: translateX(4px);
}

.arrow {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ---------- Header ---------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    transform 0.45s var(--ease);
}
.site-head.is-scrolled {
  background: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--ink-hair);
}
.site-head.is-hidden {
  transform: translateY(-100%);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
}
.brand .mark {
  width: 48px;
  height: 48px;
  transition: transform 0.6s var(--ease);
}
.brand:hover .mark {
  transform: rotate(-12deg);
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
}

.site-nav ul {
  display: flex;
  gap: clamp(1.25rem, 0.5rem + 2vw, 2.5rem);
}
.site-nav a {
  position: relative;
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--grey-nav);
  padding: 0.5rem 0;
  transition: color 0.25s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

main {
  display: block;
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-top: var(--header-h);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
/* Soft white veil keeps the headline crisp wherever a line drifts behind it */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgb(255 255 255 / 0.92) 33%, rgb(255 255 255 / 0) 65%);
}

.hero-copy {
  position: relative;
  max-width: 44rem;
  padding-block: clamp(3rem, 2rem + 6vh, 7rem);
}
.hero-copy .eyebrow {
  margin-bottom: 1.75rem;
}
.hero-copy .display {
  margin-bottom: 1.6rem;
}
.hero-copy .lede {
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 999px;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover {
  background: var(--ink-deep);
}
.btn .arrow {
  transition: transform 0.35s var(--ease);
}
.btn:hover .arrow {
  transform: translateY(3px);
}

.video-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(1rem, 3vh, 2rem);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--ink-hair);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s var(--ease);
}
.video-toggle:hover {
  border-color: var(--ink);
}
.video-toggle svg {
  width: 12px;
  height: 12px;
}
.video-toggle .icon-play {
  display: none;
}
.video-toggle[aria-pressed="true"] .icon-play {
  display: block;
}
.video-toggle[aria-pressed="true"] .icon-pause {
  display: none;
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.section-head .eyebrow {
  margin-bottom: 1rem;
}

.rule {
  height: 1px;
  background: var(--ink-hair);
  border: 0;
  margin: 0;
}

/* ---------- Work grid: full bleed, zero gutter ---------- */

.work {
  padding-top: var(--section);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1.4035fr;
}
.work-grid .tile:nth-child(3),
.work-grid .tile:nth-child(4) {
  grid-column: span 1;
}
.work-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f4f4f8;
  color: var(--ink);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}
.tile:hover img,
.tile:focus-visible img {
  transform: scale(1.035);
}
.tile:focus-visible {
  outline-offset: -6px;
  outline-color: #fff;
}

.tile-label {
  position: absolute;
  left: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: calc(100% - 3rem);
  padding: 0.85rem 1.1rem 0.9rem;
  background: #fff;
  color: var(--ink);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.tile-label .t {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.tile-label .s {
  font-size: var(--text-small);
  color: var(--grey-micro);
}
.tile:hover .tile-label,
.tile:focus-visible .tile-label {
  transform: translateY(0);
  opacity: 1;
}
@media (hover: none) {
  .tile-label {
    transform: none;
    opacity: 1;
  }
}

/* Project index: the system's list of case studies */
.index-list {
  display: grid;
  border-top: 1px solid var(--ink-hair);
}
.index-list a {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--ink-hair);
  color: var(--grey-muted);
  transition: color 0.3s var(--ease), padding 0.4s var(--ease);
}
.index-list .num {
  font-size: var(--text-micro);
  letter-spacing: 0.12em;
}
.index-list .name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem);
  line-height: 1.15;
}
.index-list .meta {
  font-size: var(--text-small);
  text-align: right;
}
.index-list a:hover,
.index-list a[aria-current="page"] {
  color: var(--ink);
}
.index-list a:hover {
  padding-left: 0.75rem;
}

/* ---------- Two-column block ---------- */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.25rem clamp(2rem, 1rem + 4vw, 6rem);
  align-items: start;
}
.two-col + .two-col {
  margin-top: clamp(3.5rem, 2.5rem + 3vw, 6rem);
}
.two-col > .h2 {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

/* ---------- Expertise ---------- */

.expertise {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink-hair);
}
.expertise li {
  padding: 2rem clamp(1rem, 2vw, 2rem) 0.5rem 0;
}
.expertise li + li {
  padding-left: clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--ink-hair);
}
.expertise .num {
  display: block;
  font-size: var(--text-micro);
  letter-spacing: 0.12em;
  color: var(--grey-micro);
  margin-bottom: 2.5rem;
}
.expertise .h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.expertise p {
  font-size: 0.975rem;
  color: var(--ink-soft);
}

.expertise-list {
  display: grid;
  gap: 1.5rem;
}
.expertise-list li {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ink-hair);
}
.expertise-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.expertise-list .h3 {
  font-size: 1.25rem;
}

/* ---------- Contact band ---------- */

.contact-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--on-ink);
  padding-block: clamp(5rem, 4rem + 6vw, 10rem);
}
.contact-band .band-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.contact-band .band-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  opacity: 0.9;
}
.contact-band .eyebrow {
  color: rgb(255 255 255 / 0.75);
  margin-bottom: 1.5rem;
}
.contact-band .display {
  color: var(--on-ink);
  max-width: 14ch;
}
.contact-band .lede {
  color: rgb(255 255 255 / 0.85);
  margin-top: 1.25rem;
}
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem);
  color: var(--on-ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 0.25rem;
  transition: background-size 0.45s var(--ease);
  word-break: break-word;
}
.email-link:hover {
  background-size: 0% 2px;
  background-position: 100% 100%;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--on-ink);
  font-size: var(--text-small);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.copy-btn:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 0.08);
}
.copy-btn svg {
  width: 14px;
  height: 14px;
}

/* ---------- Footer ---------- */

.site-foot {
  background: var(--bg-footer);
  color: var(--ink);
  padding-block: 3rem;
  font-size: var(--text-small);
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.site-foot .brand .mark {
  width: 36px;
  height: 36px;
}
.site-foot nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
.site-foot nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Page intro (about, contact, case studies) ---------- */

.page-intro {
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 7rem));
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}
.page-intro .eyebrow {
  margin-bottom: 1.5rem;
}
.page-intro .h1,
.page-intro .display {
  max-width: 18ch;
}
.page-intro .lede {
  margin-top: 1.75rem;
  max-width: 42rem;
}

.art-strip {
  position: relative;
  aspect-ratio: 21 / 7;
  overflow: hidden;
}
.art-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Case study ---------- */

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.5rem 2rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-hair);
}
.case-meta dt {
  font-size: var(--text-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-micro);
  margin-bottom: 0.4rem;
}
.case-meta dd {
  font-weight: 500;
}
.case-meta a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.case-figures {
  display: grid;
  gap: 0;
}
.case-figures figure {
  margin: 0;
  background: #f4f4f8;
}
.case-figures img {
  width: 100%;
}
.case-figures.contained {
  max-width: 1200px;
  margin-inline: auto;
  gap: clamp(1rem, 2vw, 2rem);
  padding-inline: var(--gutter);
}
.case-figures.contained figure {
  background: none;
}

.case-body {
  padding-block: var(--section);
}

.goals {
  display: grid;
  gap: 1rem;
  counter-reset: goal;
}
.goals li {
  position: relative;
  padding-left: 3rem;
  counter-increment: goal;
}
.goals li::before {
  content: counter(goal, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-size: var(--text-micro);
  letter-spacing: 0.12em;
  color: var(--grey-micro);
}

.quote-block {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.3;
  color: var(--ink);
  padding-left: 1.5rem;
  border-left: 2px solid var(--ink);
  text-wrap: balance;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink-hair);
  border-bottom: 1px solid var(--ink-hair);
}
.stat {
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.75rem) clamp(1rem, 2vw, 2rem);
}
.stat + .stat {
  border-left: 1px solid var(--ink-hair);
}
.stat .value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat .value .unit {
  font-size: 0.55em;
  letter-spacing: 0;
  margin-left: 0.1em;
}
.stat .label {
  display: block;
  margin-top: 0.9rem;
  font-size: var(--text-small);
  color: var(--ink-soft);
  max-width: 16rem;
}

.prototype-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-top: 1px solid var(--ink-hair);
  border-bottom: 1px solid var(--ink-hair);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink-hair);
}
.pager a {
  display: grid;
  gap: 0.5rem;
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--gutter);
  transition: background-color 0.35s var(--ease);
}
.pager a:hover {
  background: #f6f6fb;
}
.pager a + a {
  border-left: 1px solid var(--ink-hair);
  text-align: right;
}
.pager .dir {
  font-size: var(--text-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-micro);
}
.pager .name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  line-height: 1.15;
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: var(--header-h);
}

/* ---------- Reveal motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .tile:hover img {
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .expertise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .expertise li:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--ink-hair);
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 72px;
  }
  .brand .mark {
    width: 40px;
    height: 40px;
  }
  .brand-name {
    display: none;
  }
  .site-nav a {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-media {
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 4 / 3;
    margin-inline: calc(var(--gutter) * -1);
    order: 2;
  }
  .hero-media video,
  .hero-media img {
    object-position: 72% 50%;
  }
  .hero-media::after {
    background: linear-gradient(180deg, #fff 0%, rgb(255 255 255 / 0) 22%);
  }
  .hero > .wrap {
    order: 1;
  }
  .hero-copy {
    padding-block: 2.5rem 1rem;
  }
  .video-toggle {
    bottom: 0.75rem;
  }

  .work-grid,
  .work-row-2 {
    grid-template-columns: 1fr;
  }

  .index-list a {
    grid-template-columns: 2.5rem 1fr;
  }
  .index-list .meta {
    grid-column: 2;
    text-align: left;
    margin-top: -0.5rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
  .two-col > .h2 {
    position: static;
  }

  .expertise {
    grid-template-columns: 1fr;
  }
  .expertise li,
  .expertise li + li {
    padding: 1.5rem 0;
    border-left: 0;
  }
  .expertise li + li {
    border-top: 1px solid var(--ink-hair);
  }
  .expertise .num {
    margin-bottom: 1rem;
  }

  .pager {
    grid-template-columns: 1fr;
  }
  .pager a + a {
    border-left: 0;
    border-top: 1px solid var(--ink-hair);
    text-align: left;
  }

  .art-strip {
    aspect-ratio: 16 / 9;
  }

  .contact-band .band-art img {
    object-position: 80% 50%;
    opacity: 0.55;
  }
}

@media (max-width: 420px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--ink-hair);
  }
}

@media print {
  .site-head,
  .video-toggle,
  .hero-media,
  .contact-band .band-art {
    display: none !important;
  }
}
