/* ==========================================================================
   ASSAI /instructor/<slug> — instructor profile page
   Depends on tokens in global.css (colors, fonts, fluid sizes).
   Local additions: a utility sans for labels/data, hairline + easing tokens.
   ========================================================================== */

.ins-body {
  --ins-sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --ins-hair: rgba(201, 169, 110, 0.22);
  --ins-hair-dark: rgba(17, 29, 58, 0.14);
  --ins-gutter: clamp(1.25rem, 4vw, 3rem);
  --ins-max: 1240px;
  --ins-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--cream);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ins-body ::selection {
  background: rgba(201, 169, 110, 0.35);
}

.ins-body a:focus-visible,
.ins-body button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.ins-inner {
  width: 100%;
  max-width: var(--ins-max);
  margin: 0 auto;
}

/* Small caps utility labels — the "data voice" of the page */
.ins-label,
.ins-eyebrow,
.ins-kicker {
  font-family: var(--ins-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.4;
}

.ins-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.ins-label::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.ins-sec-cream .ins-label {
  color: var(--navy);
}

.ins-sec-navy .ins-label {
  color: var(--gold-bright);
}

/* --------------------------------------------------------------------------
   Nav — transparent over the hero, glass once the page scrolls
   -------------------------------------------------------------------------- */

.ins-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem var(--ins-gutter);
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease, border-color 0.5s ease, padding 0.4s ease;
}

.ins-nav.is-scrolled {
  padding-block: 0.8rem;
  background: rgba(17, 29, 58, 0.84);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-color: var(--ins-hair);
}

.ins-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.ins-back {
  font-family: var(--ins-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, 0.8);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.3s ease;
}

.ins-back::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ins-ease);
}

.ins-back:hover {
  color: var(--gold-bright);
}

.ins-back:hover::before {
  width: 34px;
}

/* --------------------------------------------------------------------------
   Hero — the name runs across the portrait's edge
   -------------------------------------------------------------------------- */

.ins-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: clamp(6rem, 12vh, 8.5rem) var(--ins-gutter) 0;
  background: var(--navy-deep);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.ins-hero-mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 60% at 72% 30%, rgba(201, 169, 110, 0.13), transparent 65%),
    radial-gradient(ellipse 50% 60% at 8% 10%, rgba(28, 43, 86, 0.95), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 115%, rgba(82, 45, 35, 0.5), transparent 70%),
    var(--navy-deep);
}

.ins-hero-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 241, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 235, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 100%);
}

.ins-hero-inner {
  width: 100%;
  max-width: var(--ins-max);
  margin: auto auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  column-gap: clamp(0rem, 3vw, 3rem);
  align-items: end;
}

.ins-hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.ins-eyebrow {
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.ins-eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.ins-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.9rem, 12vw, 11.5rem);
  line-height: 0.9;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 1rem 0 1.5rem;
  margin-right: -30%;
}

.ins-hero h1 .ins-line {
  display: block;
  overflow: hidden;
  padding: 0 0.1em 0.06em 0.06em;
  margin-left: -0.06em;
}

.ins-hero h1 .ins-line > span {
  display: block;
}

.ins-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-bright);
  white-space: nowrap;
}

.ins-tagline {
  font-family: var(--ins-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.ins-tagline::after {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.ins-lead {
  font-size: var(--fs-105);
  line-height: 1.75;
  color: rgba(244, 241, 235, 0.8);
  max-width: 30rem;
  margin-bottom: 2.2rem;
}

.ins-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 2.4rem;
}

.ins-btn,
.ins-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.9rem;
  font-family: var(--ins-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}

.ins-btn {
  position: relative;
  overflow: hidden;
  background: var(--gold);
  color: var(--navy-deep);
  transition: color 0.4s;
}

.ins-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: translateY(101%);
  transition: transform 0.45s var(--ins-ease);
}

.ins-btn:hover::before {
  transform: translateY(0);
}

.ins-btn span,
.ins-btn svg {
  position: relative;
  z-index: 1;
}

.ins-btn svg,
.ins-btn-outline svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ins-ease);
}

.ins-btn:hover svg,
.ins-btn-outline:hover svg {
  transform: translateX(4px);
}

.ins-btn-outline {
  border: 1px solid rgba(244, 241, 235, 0.3);
  color: var(--cream);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.ins-btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(201, 169, 110, 0.08);
}

.ins-social {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.ins-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(244, 241, 235, 0.18);
  border-radius: 999px;
  color: rgba(244, 241, 235, 0.8);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.35s var(--ins-ease);
}

.ins-social a:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(201, 169, 110, 0.08);
  transform: translateY(-2px);
}

.ins-social svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ins-handle {
  font-family: var(--ins-sans);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: rgba(189, 178, 162, 0.7);
  margin-left: 0.4rem;
}

/* Portrait: pulled left so the surname crosses its edge; gold rule frame draws on load */
.ins-portrait {
  position: relative;
  z-index: 1;
  margin: 0;
  margin-left: -12vw;
  width: min(calc(100% + 12vw), 72vh);
  justify-self: end;
  align-self: end;
}

.ins-portrait::before {
  content: '';
  position: absolute;
  inset: -16px 16px 0 -16px;
  border: 1px solid var(--gold);
  border-bottom: 0;
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
}

.ins-portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--navy);
}

.ins-portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 25%;
  filter: saturate(0.92) contrast(1.02);
}

.ins-portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 29, 58, 0.85) 0%, rgba(17, 29, 58, 0.25) 28%, transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(17, 29, 58, 0.55) 100%);
  pointer-events: none;
}

.ins-portrait-side {
  position: absolute;
  right: -1.15rem;
  bottom: 2rem;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--ins-sans);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(189, 178, 162, 0.6);
  white-space: nowrap;
}

/* Proof strip */
.ins-strip {
  border-top: 1px solid var(--ins-hair);
  margin: 0 calc(-1 * var(--ins-gutter));
  padding: 0 var(--ins-gutter);
  background: rgba(10, 15, 30, 0.35);
}

.ins-strip-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ins-stat {
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-right: 1px solid var(--ins-hair);
}

.ins-stat + .ins-stat {
  padding-left: 1.5rem;
}

.ins-stat:last-child {
  border-right: 0;
  padding-right: 0;
}

.ins-stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 300;
  line-height: 1;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.ins-stat-value b {
  font-weight: 400;
  color: var(--gold-bright);
}

.ins-stat-label {
  font-family: var(--ins-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(189, 178, 162, 0.72);
  margin-top: 0.6rem;
  line-height: 1.45;
}

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

.ins-sec {
  padding: clamp(4.5rem, 9vw, 8rem) var(--ins-gutter);
}

.ins-sec-cream {
  background: var(--cream);
  color: var(--text-body);
}

.ins-sec-navy {
  background: var(--navy-deep);
  color: var(--cream);
}

.ins-sec h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.ins-sec h2 em {
  font-style: italic;
  font-weight: 400;
}

.ins-sec-cream h2 {
  color: var(--navy-deep);
}

.ins-sec-cream h2 em {
  color: var(--navy);
}

.ins-sec-navy h2 em {
  color: var(--gold-bright);
}

/* --------------------------------------------------------------------------
   Statement — the principle behind every class
   -------------------------------------------------------------------------- */

.ins-statement {
  background: var(--deep-cream);
  color: var(--navy-deep);
  padding: clamp(4rem, 8vw, 6.5rem) var(--ins-gutter);
}

.ins-quote {
  position: relative;
  max-width: 980px;
  padding-left: clamp(2.5rem, 6vw, 4.5rem);
}

.ins-quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -0.1em;
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
}

.ins-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.22;
  letter-spacing: -0.005em;
}

.ins-quote cite {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
  font-family: var(--ins-sans);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

.ins-quote cite::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.ins-tenets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.ins-tenet {
  border-top: 1px solid rgba(17, 29, 58, 0.22);
  padding-top: 1.2rem;
}

.ins-tenet strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-155);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy-deep);
  margin-bottom: 0.5rem;
}

.ins-tenet p {
  font-size: var(--fs-095);
  line-height: 1.65;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Experience — sticky heading, ledger of roles
   -------------------------------------------------------------------------- */

.ins-exp-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.ins-exp-head {
  position: sticky;
  top: 6.5rem;
}

.ins-exp-head h2 {
  margin-bottom: 1.4rem;
}

.ins-exp-head p {
  max-width: 28rem;
  color: var(--text-muted);
  font-size: var(--fs-100);
  line-height: 1.7;
}

.ins-exp {
  list-style: none;
  border-top: 1px solid var(--ins-hair-dark);
}

.ins-exp-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 0.75rem 2rem;
  padding: 2.1rem 0;
  border-bottom: 1px solid var(--ins-hair-dark);
}

.ins-exp-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.7s var(--ins-ease);
}

.ins-exp-item:hover::before {
  width: 100%;
}

.ins-exp-org {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.06;
  color: var(--navy-deep);
  letter-spacing: 0.01em;
}

.ins-exp-body h3 {
  font-family: var(--ins-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.ins-exp-sub {
  font-size: var(--fs-102);
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 0.4rem;
}

.ins-exp-desc {
  font-size: var(--fs-095);
  line-height: 1.7;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Gallery — staggered classroom photos
   -------------------------------------------------------------------------- */

.ins-gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
}

.ins-gallery-head h2 {
  margin-bottom: 0;
}

.ins-gallery-note {
  font-family: var(--ins-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(189, 178, 162, 0.7);
  padding-bottom: 0.5rem;
}

.ins-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.ins-photo {
  margin: 0;
}

.ins-photo:nth-child(3n + 2) {
  margin-top: clamp(2rem, 6vw, 5rem);
}

.ins-photo-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--navy);
}

.ins-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  transition: transform 1.1s var(--ins-ease), filter 0.6s ease;
  filter: saturate(0.9);
}

.ins-photo:hover .ins-photo-frame img {
  transform: scale(1.045);
  filter: saturate(1);
}

.ins-photo figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ins-hair);
}

.ins-photo-head {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.ins-photo-title {
  font-family: var(--font-display);
  font-size: var(--fs-130);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.2;
}

.ins-photo-topic {
  font-family: var(--ins-sans);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: rgba(189, 178, 162, 0.82);
  line-height: 1.35;
}

.ins-photo-kicker {
  font-family: var(--ins-sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(189, 178, 162, 0.7);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Works — one featured conversation, two supporting
   -------------------------------------------------------------------------- */

.ins-works {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-auto-rows: auto;
  gap: 1.5rem;
}

.ins-work {
  display: block;
  position: relative;
  background: var(--white);
  border: 1px solid var(--ins-hair-dark);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.5s var(--ins-ease), border-color 0.3s, box-shadow 0.5s ease;
}

a.ins-work:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 110, 0.7);
  box-shadow: 0 24px 50px -24px rgba(17, 29, 58, 0.35);
}

.ins-work-feature {
  grid-row: span 3;
}

.ins-work-side {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
}

.ins-work-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-deep);
}

.ins-work-side .ins-work-thumb {
  aspect-ratio: auto;
  min-height: 180px;
  height: 100%;
}

.ins-work-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ins-ease);
}

a.ins-work:hover .ins-work-thumb img {
  transform: scale(1.05);
}

.ins-work-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(223, 196, 138, 0.8);
  border-radius: 999px;
  background: rgba(17, 29, 58, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cream);
  transition: background 0.3s, transform 0.4s var(--ins-ease);
}

.ins-work-side .ins-work-play {
  width: 50px;
  height: 50px;
}

a.ins-work:hover .ins-work-play {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translate(-50%, -50%) scale(1.06);
}

.ins-work-play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-left: 2px;
}

.ins-work-body {
  padding: 1.5rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ins-work-feature .ins-work-body {
  padding: 2rem 2.2rem 2.3rem;
}

.ins-work-kicker {
  font-family: var(--ins-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.ins-work h3 {
  font-family: var(--font-display);
  font-size: var(--fs-165);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy-deep);
  margin-bottom: 0.55rem;
}

.ins-work-feature h3 {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 400;
}

.ins-work p {
  font-size: var(--fs-092);
  line-height: 1.65;
  color: var(--text-muted);
}

.ins-work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-family: var(--ins-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.ins-work-link svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Program CTA — a list, not a grid
   -------------------------------------------------------------------------- */

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

.ins-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem var(--ins-gutter);
  background: var(--black);
  color: rgba(189, 178, 162, 0.45);
  font-family: var(--ins-sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 1px solid rgba(201, 169, 110, 0.08);
}

/* --------------------------------------------------------------------------
   Motion — one orchestrated load, quiet scroll reveals
   -------------------------------------------------------------------------- */

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

@keyframes ins-line-up {
  from {
    transform: translateY(108%);
  }
  to {
    transform: none;
  }
}

@keyframes ins-unveil {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes ins-draw {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.ins-rise {
  animation: ins-rise 1s var(--ins-ease) both;
  animation-delay: var(--d, 0s);
}

.ins-hero h1 .ins-line > span {
  animation: ins-line-up 1.1s var(--ins-ease) both;
  animation-delay: var(--d, 0s);
}

.ins-portrait-frame {
  animation: ins-unveil 1.3s var(--ins-ease) 0.25s both;
}

.ins-portrait::before {
  animation: ins-draw 1.2s var(--ins-ease) 0.9s both;
}

.ins-strip {
  animation: ins-rise 1s var(--ins-ease) 1.1s both;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease-out, transform 1s var(--ins-ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

/* Very tall viewports: don't stretch the hero to fill */
@media (min-height: 1400px) {
  .ins-hero {
    min-height: 0;
  }
}

@media (max-width: 1100px) {
  .ins-hero {
    min-height: 0;
  }

  .ins-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  }

  .ins-portrait {
    margin-left: -6vw;
    width: min(calc(100% + 6vw), 72vh);
  }

  .ins-works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ins-work-feature {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .ins-work-side {
    grid-template-columns: 1fr;
  }

  .ins-work-side .ins-work-thumb {
    aspect-ratio: 16 / 10;
    min-height: 0;
    height: auto;
  }
}

@media (max-width: 900px) {
  .ins-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ins-stat {
    padding: 1.4rem 1rem 1.4rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--ins-hair);
  }

  .ins-stat + .ins-stat {
    padding-left: 0;
  }

  .ins-stat:nth-child(odd) {
    border-right: 1px solid var(--ins-hair);
  }

  .ins-stat:nth-child(even) {
    padding-left: 1.25rem;
  }

  .ins-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .ins-tenets {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .ins-exp-grid {
    grid-template-columns: 1fr;
  }

  .ins-exp-head {
    position: static;
  }

  .ins-exp-item {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1.7rem 0;
  }

  /* Long org marks (e.g. "Microsoft × Stimson Center") need room on a phone */
  .ins-exp-org {
    font-size: clamp(1.5rem, 7vw, 1.9rem);
  }

  .ins-gallery-head {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .ins-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--ins-gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 2.5rem calc(-1 * var(--ins-gutter)) 0;
    padding: 0 var(--ins-gutter) 0.5rem;
  }

  .ins-gallery::-webkit-scrollbar {
    display: none;
  }

  .ins-photo {
    flex: 0 0 76%;
    max-width: 380px;
    scroll-snap-align: start;
  }

  .ins-photo:nth-child(3n + 2) {
    margin-top: 0;
  }

  .ins-footer {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .ins-hero {
    min-height: 0;
    padding-top: 6.5rem;
  }

  .ins-hero-inner {
    grid-template-columns: 1fr;
  }

  .ins-portrait {
    order: -1;
    width: min(100%, 320px);
    margin-left: 0;
    justify-self: start;
    margin-bottom: 2.5rem;
    margin-top: 1rem;
  }

  .ins-portrait::before {
    inset: -12px 12px -12px -12px;
    border-bottom: 1px solid var(--gold);
  }

  .ins-portrait-side {
    display: none;
  }

  .ins-hero h1 {
    margin-right: 0;
    font-size: clamp(3.4rem, 15vw, 5.6rem);
  }

  .ins-hero-copy {
    padding-bottom: 2.5rem;
  }

  .ins-works {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ins-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ins-btn,
  .ins-btn-outline {
    justify-content: center;
  }

  .ins-photo {
    flex-basis: 82%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ins-rise,
  .ins-hero h1 .ins-line > span,
  .ins-portrait-frame,
  .ins-portrait::before,
  .ins-strip {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ins-body *,
  .ins-body *::before,
  .ins-body *::after {
    transition-duration: 0.01ms !important;
  }

  .ins-photo:hover .ins-photo-frame img,
  a.ins-work:hover,
  a.ins-work:hover .ins-work-thumb img,
  .ins-social a:hover {
    transform: none;
  }
}

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