/* Ravi Satpute portfolio — ported from Portfoliobox custom styling */

@import url("https://fonts.googleapis.com/css2?family=Fragment+Mono&family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;1,14..32,400&family=Inter+Display:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;1,14..32,400&display=swap");

:root {
  --bg: #ffffff;
  --text: #7d7d7d;
  --text-dark: #141414;
  --text-muted: #7a7a7a;
  --menu-hover: #141414;
  --border: rgba(200, 200, 200, 0.3);
  --nav-height: 52px;
  --grid-gap: clamp(28px, 2.5vw, 36px);
  --site-pad: clamp(20px, 2.5vw, 32px);
  --content-max: min(1720px, calc(100vw - 48px));
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text-dark);
  text-decoration: none;
}

a:hover {
  color: var(--menu-hover);
}

/* ——— Site header (frosted nav) ——— */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--content-max);
  min-height: var(--nav-height);
  margin: 0 auto;
  padding: 8px var(--site-pad);
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
  min-width: 0;
}

.site-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.5vw, 28px);
  z-index: 1;
  min-width: 0;
}

.site-logo {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.site-logo img {
  display: block;
  height: 20px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text-dark);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icons a {
  display: flex;
  line-height: 0;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.social-icon {
  display: block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask-image: var(--icon);
  mask-image: var(--icon);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: color 0.2s ease;
}

.social-icons a:hover {
  color: var(--text-muted);
}

.nav-about-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  margin: -9px -8px;
  border-radius: 50%;
  line-height: 0;
  text-decoration: none;
}

.nav-about-avatar img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid transparent;
  transition: border-color 0.15s ease;
}

@media (min-width: 769px) {
  .site-header__right nav {
    display: none;
  }

  .nav-about-avatar img {
    width: 30px;
    height: 30px;
  }
}

.nav-about-avatar:hover img {
  border-color: rgba(122, 122, 122, 0.45);
}

.nav-about-avatar.is-active img {
  border-color: var(--text-muted);
}

/* ——— Main layout ——— */

main {
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: 4rem;
}

body[data-page="about"] main,
body[data-page="product-contact"] main {
  padding-top: calc(var(--nav-height) * 2);
}

.home-hero {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto 3rem;
  padding: clamp(0.5rem, 2vw, 1.5rem) var(--site-pad) 0;
  text-align: center;
}

.home-hero__title,
.project-header h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-dark);
}

.project-header h1 {
  margin-bottom: 1.5rem;
}

.home-hero__lead {
  margin: 0 auto;
  max-width: 36ch;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.8vw, 24px);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.35;
  color: #1d1d1f;
}

.home-hero__lead--short {
  display: none;
}

.home-hero__about {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  width: auto;
  height: auto;
  margin-top: 1.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  line-height: 0;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.home-hero__about img {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}

.home-hero__about-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.home-hero__about:hover img {
  border-color: rgba(122, 122, 122, 0.55);
}

.home-hero__about:hover .home-hero__about-label {
  color: var(--text-dark);
}

.home-hero__about:focus-visible {
  outline: none;
}

.home-hero__about:focus-visible img {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text-muted);
}

/* ——— Work grid (home) ——— */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--site-pad);
  padding-right: var(--site-pad);
}

.work-card {
  display: block;
  color: inherit;
}

.work-card__media {
  overflow: hidden;
  background: #f4f4f4;
  aspect-ratio: 1 / 1;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.work-card:hover .work-card__media img {
  transform: scale(1.02);
}

/* Irene-style caption: name + year hierarchy */
.work-card__footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 18px;
  padding: 0;
}

.work-card__name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--text-dark);
}

.work-card__year {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--text-muted);
}

.grid-empty {
  max-width: 40rem;
  margin: 2rem auto;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.6;
}

.grid-empty code {
  font-size: 0.9em;
}

/* ——— Product index (/product/) ——— */

.section-intro {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto 2.5rem;
  padding-left: var(--site-pad);
  padding-right: var(--site-pad);
  text-align: left;
}

.section-intro__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--text-dark);
}

.section-intro__lead {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.section-intro a {
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section-intro a:hover {
  color: var(--text-muted);
}

/* ——— UX case study meta ——— */

.case-study {
  margin-bottom: 1.5rem;
}

.case-study-meta {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.75rem;
}

.case-study-meta__row {
  display: grid;
  gap: 0.2rem;
}

.case-study-meta dt {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

.case-study-meta dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.case-study-link {
  margin: 0;
}

.case-study-link a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Project page ——— */

.project-header {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto 3rem;
  padding-left: var(--site-pad);
  padding-right: var(--site-pad);
  text-align: left;
}

.project-header h1 {
  margin-bottom: 1.5rem;
  text-transform: none;
  max-width: none;
}

.project-header__title--mobile {
  display: none;
}

.project-nav {
  display: none;
}

.project-nav__back,
.project-nav__next {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
}

.project-nav__back:hover,
.project-nav__next:hover {
  color: var(--text-muted);
}

.project-nav__chevron {
  display: inline-block;
  margin-left: 0.1em;
  font-size: 1.15em;
  line-height: 1;
}

.project-description {
  max-width: 42rem;
  margin-bottom: 2.5rem;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.project-meta {
  display: grid;
  grid-template-columns: minmax(3.5rem, auto) minmax(7rem, 1fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  margin: 0;
  padding: 0;
}

.project-meta__item {
  margin: 0;
}

.project-meta__item dt {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.project-meta__item dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dark);
}

@media (min-width: 769px) {
  .project-meta__item dd {
    white-space: nowrap;
  }

  .project-meta__item:last-child dd {
    white-space: normal;
  }
}

.project-header .case-study-link {
  margin-top: 1.5rem;
}

.project-description p {
  margin: 0 0 1rem;
}

.project-description p:last-child {
  margin-bottom: 0;
}

.project-cta {
  width: 100%;
  max-width: var(--content-max);
  margin: 3rem auto 0;
  padding-left: var(--site-pad);
  padding-right: var(--site-pad);
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.project-cta a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-cta a:hover {
  color: var(--text-muted);
}

.project-cta__sep {
  color: var(--text-muted);
  user-select: none;
}

.project-description .adobe-text {
  margin-bottom: 1.25rem;
}

.project-description .adobe-text .adobe-text {
  margin-bottom: 0;
}

.project-description .bold {
  font-weight: 600;
  color: var(--text-dark);
}

.project-description .italic {
  font-style: italic;
}

.project-description .texteditor-inline-fontsize {
  font-size: inherit !important;
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--site-pad);
  padding-right: var(--site-pad);
}

.project-gallery__featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

.project-gallery__main {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
}

.project-gallery--cols-3,
.project-gallery__main.project-gallery--cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.project-gallery img {
  width: 100%;
  cursor: zoom-in;
}

.project-gallery__featured img,
.project-gallery__main.project-gallery--cols-3 img {
  align-self: start;
}

.project-gallery__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.project-gallery__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-description .portfoliobox-text h3 {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
}

.project-description .portfoliobox-text h3 strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
}

.project-description .portfoliobox-text h3:first-of-type > span:first-of-type {
  display: block;
  margin-bottom: 1rem;
  font-size: 14px;
}

.project-description .portfoliobox-text ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.project-description .portfoliobox-text li {
  margin-bottom: 0.5rem;
}

.project-description .portfoliobox-text li h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: 400;
}

/* ——— About page ——— */

.about-page {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--site-pad);
  padding-right: var(--site-pad);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.about-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.about-hero-split__text {
  max-width: none;
}

.about-hero-split__media {
  margin: 0;
  justify-self: stretch;
  width: 100%;
}

.about-hero__name {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-dark);
}

.about-hero__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: var(--text);
}

.about-who {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}

.about-who-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.about-who-split__main {
  max-width: 42rem;
}

.about-who-split__aside {
  min-width: 0;
}

.about-aside-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(1.25rem, 2.5vw, 2rem);
  row-gap: 1rem;
  align-items: stretch;
}

.about-aside__eyebrow {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.about-aside-paired--desktop {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.about-aside-paired__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(8rem, 10vw, 9.5rem);
  grid-template-rows: auto auto;
  column-gap: clamp(1.25rem, 2.5vw, 2rem);
  row-gap: 0.35rem;
}

.about-aside-paired__row .about-aside-stats__value {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.about-aside-paired__subline {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(8rem, 10vw, 9.5rem);
  column-gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

.about-aside-paired__subline .about-aside-stats__label {
  grid-column: 1;
  margin: 0;
}

.about-aside-paired__chart {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: calc((1.55em - 11px) / 2 + 0.35rem);
}

.about-aside-paired__chart .about-aside-paired__track-align {
  width: 100%;
  margin-top: calc((1.55em - 11px) / 2);
}

.about-aside-paired__track {
  width: 100%;
  height: 11px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.08);
  overflow: hidden;
}

.about-aside-paired__label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
  text-align: center;
}

.about-aside-stats {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  align-self: stretch;
  justify-content: flex-start;
}

.about-focus-chart {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.about-focus-chart--mobile {
  display: none;
}

.about-skill-bars {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.25rem;
  column-gap: 1rem;
  row-gap: 1.125rem;
  align-items: center;
  width: 100%;
}

.about-skill-bar {
  display: contents;
}

.about-skill-bar__track {
  grid-column: 1;
  height: 11px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.08);
  overflow: hidden;
}

.about-skill-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.82);
}

.about-skill-bar__fill--muted {
  background: rgba(20, 20, 20, 0.42);
}

.about-skill-bar__label {
  grid-column: 2;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
  white-space: nowrap;
}

.about-aside-stats__item {
  margin: 0;
}

.about-aside-stats__value {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-dark);
}

.about-aside-stats__label {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
}

.about-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.about-section__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-dark);
}

.about-copy {
  font-size: 15px;
  line-height: 1.65;
}

.about-copy p {
  margin: 0 0 1rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-clients {
  margin: 1.5rem 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
}

.about-process {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(1rem, 2vw, 1.5rem);
}

.about-process .about-section__title {
  margin-bottom: 1.25rem;
}

.about-process__lead {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.about-process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.about-process__step {
  margin: 0;
}

.about-process__step-num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.about-process__step h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
}

.about-process__step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.about-reach {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}

.about-reach__title {
  max-width: 16em;
}

.about-reach__lead {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.about-reach__cta {
  margin: 0 0 1rem;
}

.about-reach__cta a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-reach__cta a:hover {
  color: var(--text-muted);
}

.about-reach__location {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.about-faq {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.about-faq__list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(2rem, 4vw, 4rem);
}

.about-faq__item {
  margin: 0;
}

.about-faq__item dt {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
}

.about-faq__item dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.about-footer {
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}

.about-footer-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: baseline;
}

.about-footer-split__main {
  grid-column: 1;
  min-width: 0;
}

.about-footer-split__bridge {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.about-ux-bridge {
  grid-column: 2;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}

.about-footer-split__bridge .about-ux-bridge {
  grid-column: auto;
  text-align: right;
}

.about-ux-bridge--note {
  margin-top: 0;
}

.about-ux-bridge--prominent {
  margin: 0;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-dark);
  text-align: right;
  white-space: normal;
}

.about-ux-bridge--prominent a {
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-ux-bridge__arrow {
  margin-left: 0.15em;
}

.about-reach__cta-sep {
  color: var(--text-muted);
}

.about-cta {
  margin: 0 0 1.5rem;
}

.about-cta a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-cta a:hover {
  color: var(--text-muted);
}

.about-social {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  white-space: nowrap;
}

.about-page a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-page a:hover {
  color: var(--text-muted);
}

/* ——— Lightbox ——— */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1400px);
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

/* ——— Back to top (mobile, long pages) ——— */

.back-to-top {
  position: fixed;
  right: var(--site-pad);
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 9990;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, color 0.15s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--text-dark);
  outline: none;
}

.back-to-top:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text-muted);
}

.back-to-top__icon {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

body.lightbox-open .back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .home-hero__about {
    transition: none;
  }
}

/* ——— Mobile ——— */

@media (max-width: 768px) {
  :root {
    --site-pad: 12px;
    --content-max: 100%;
  }

  .site-header__inner {
    max-width: none;
    padding-left: var(--site-pad);
    padding-right: var(--site-pad);
  }

  .site-header__right nav {
    display: none;
  }

  .site-header__right {
    gap: 20px;
  }

  .social-icons {
    gap: 16px;
  }

  .social-icons a {
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    margin: -9px -13px;
  }

  .site-logo img {
    height: 20px;
  }

  .home-hero {
    margin-bottom: 2rem;
    padding-top: 0.25rem;
    padding-left: var(--site-pad);
    padding-right: var(--site-pad);
  }

  .home-hero__title,
  .project-header h1 {
    font-size: clamp(32px, 9vw, 40px);
  }

  .home-hero__title {
    margin-bottom: 0.625rem;
  }

  .project-header h1 {
    margin-bottom: 1rem;
  }

  .home-hero__lead--full {
    display: none;
  }

  .home-hero__lead--short {
    display: block;
  }

  .home-hero__lead {
    font-size: clamp(17px, 4.5vw, 21px);
    max-width: 32ch;
    letter-spacing: -0.018em;
  }

  .home-hero__about {
    margin-top: 1.5rem;
  }

  .home-hero__about img {
    width: 88px;
    height: 88px;
  }

  .about-ux-bridge--prominent {
    text-align: left;
    white-space: normal;
  }

  .back-to-top {
    display: flex;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: none;
    width: 100%;
    padding-left: var(--site-pad);
    padding-right: var(--site-pad);
  }

  .project-header {
    margin-bottom: 2rem;
  }

  .project-header__title--desktop {
    display: none;
  }

  .project-header__title--mobile {
    display: inline;
  }

  .project-nav {
    display: block;
  }

  .project-nav--top {
    margin-bottom: 0.875rem;
  }

  .project-nav--bottom {
    width: 100%;
    max-width: none;
    margin: 2rem auto 0;
    padding-left: var(--site-pad);
    padding-right: var(--site-pad);
    text-align: right;
  }

  .project-nav__next {
    font-size: 15px;
  }

  .project-cta {
    display: none;
  }

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

  .project-gallery__featured {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-gallery--cols-3,
  .project-gallery__main.project-gallery--cols-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  main {
    padding-top: calc(var(--nav-height) + 16px);
  }

  body[data-page="about"] main,
  body[data-page="product-contact"] main {
    padding-top: calc(var(--nav-height) * 2);
  }

  .about-hero-split {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    padding-top: 0;
  }

  .about-hero-split__media {
    max-width: none;
    width: 100%;
  }

  .about-photo {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
  }

  .about-hero__tagline {
    white-space: normal;
    font-size: clamp(20px, 5vw, 26px);
  }

  .about-hero__tagline br {
    display: none;
  }

  .about-who-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-aside-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .about-aside__eyebrow,
  .about-aside-stats {
    grid-column: 1;
  }

  .about-aside__eyebrow {
    grid-row: 1;
  }

  .about-aside-stats {
    grid-row: 2;
  }

  .about-aside-paired--desktop {
    display: none;
  }

  .about-aside-stats {
    display: flex;
  }

  .about-focus-chart--desktop {
    display: none;
  }

  .about-focus-chart--mobile {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    max-width: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
  }

  .about-who-split__main {
    max-width: none;
  }

  .about-process__steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-faq__list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-footer-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-social,
  .about-ux-bridge {
    white-space: normal;
  }

  .about-footer-split__bridge {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .about-footer-split__bridge .about-ux-bridge {
    text-align: left;
  }

  .about-footer-split:has(.about-footer-split__bridge) .about-footer-split__main {
    grid-column: 1;
    grid-row: 2;
  }

  .about-footer-split:not(:has(.about-footer-split__bridge)) .about-ux-bridge {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }

  .about-footer-split:not(:has(.about-footer-split__bridge)) .about-footer-split__main {
    grid-row: 2;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-gallery--cols-3,
  .project-gallery__main.project-gallery--cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

