:root {
  color-scheme: light;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #202024;
  background: #fff;
  font-synthesis: none;
  --gutter: clamp(22px, 5.3vw, 86px);
  --text-secondary: #5e5c63;
  --ease: cubic-bezier(.22, .76, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid #694e91; outline-offset: 6px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }

.home {
  position: relative;
  display: grid;
  grid-template-columns: clamp(280px, 25vw, 340px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 68px);
  min-height: 100svh;
  padding-inline-end: clamp(22px, 3.5vw, 64px);
}
.profile {
  min-width: 0;
  padding: clamp(24px, 3.2vw, 42px) clamp(22px, 2.5vw, 34px);
  background: #f9edf4;
  font-family: 'Funnel Sans', 'Helvetica Neue', Arial, sans-serif;
}
.profile-content { max-width: 330px; margin-inline: auto; }
.portrait {
  aspect-ratio: 7 / 5;
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 43%; }
.profile-intro { margin-top: 20px; }
.profile h1 {
  margin: 0;
  font: 650 clamp(2.1rem, 3.5vw, 3.12rem)/.98 'Funnel Display', 'Funnel Sans', sans-serif;
  letter-spacing: -.035em;
}
.discipline { margin: 5px 0 0; font: 600 clamp(1.15rem, 1.65vw, 1.4rem)/1.13 'Funnel Display', 'Funnel Sans', sans-serif; }
.profile-location { margin: 8px 0 0; color: #883043; font-size: .875rem; font-weight: 650; }
.profile-disciplines,
.profile-skills ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
  padding: 0;
  list-style: none;
  font-size: .8125rem;
  line-height: 1.25;
}
.profile-disciplines { margin: 15px 0 0; font-weight: 650; }
.profile-bio { margin-top: 18px; color: #383036; font-size: .875rem; line-height: 1.42; }
.profile-bio p { margin: 0; }
.profile-bio p + p { margin-top: 9px; }
.profile-mobile-bio { display: none; }
.profile .profile-software, .profile-skills { margin-top: 16px; padding-top: 11px; border-top: 1px solid #dccad5; }
.profile-software h2, .profile-skills h2 { margin: 0; font-size: .875rem; font-weight: 700; }
.profile .profile-software ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.profile .profile-software li { white-space: normal; }
.profile-skills ul { align-items: start; gap: 8px 10px; margin: 8px 0 0; }
.profile-skills li { min-width: 0; }
.profile .portfolio-contact { margin-top: 16px; }
.home .portfolio-signature { color: #62555d; }

.work {
  position: sticky;
  top: clamp(22px, 6svh, 72px);
  align-self: start;
  justify-self: center;
  width: 100%;
  min-width: 0;
  max-width: 1320px;
  margin-top: clamp(22px, 6svh, 72px);
  scroll-margin-top: 20px;
  outline: none;
}
.project-scene {
  --scene-height: clamp(510px, 86svh, 850px);
  position: relative;
  isolation: isolate;
  height: var(--scene-height);
}
.project {
  position: absolute;
  z-index: 1;
  display: block;
  width: min(clamp(160px, 25.5vw, 400px), 44%, calc(var(--scene-height) * .445));
  transform: translate(-50%, -50%);
  border-radius: 24%;
  touch-action: manipulation;
}
.project--guests {
  --splat-radius: 56% 44% 58% 42% / 38% 53% 47% 62%;
  --splat-outline: shape(from 50% 6%,
    curve to 78% 18% with 63% 6% / 65% 17%,
    curve to 91% 40% with 90% 19% / 94% 28%,
    curve to 94% 70% with 88% 52% / 96% 57%,
    curve to 68% 87% with 92% 82% / 81% 89%,
    curve to 39% 94% with 55% 85% / 52% 95%,
    curve to 15% 79% with 25% 93% / 26% 84%,
    curve to 8% 52% with 4% 74% / 2% 63%,
    curve to 10% 24% with 14% 41% / 4% 35%,
    curve to 39% 10% with 17% 12% / 27% 16%,
    curve to 50% 6% with 43% 8% / 46% 6%, close);
  --object-height: 56%;
  --shadow-width: 45%;
  --object-center-x: 48%;
  --object-center-y: 49%;
  left: 26%; top: 29%;
}
.project--light-control {
  --splat-radius: 43% 57% 48% 52% / 56% 38% 62% 44%;
  --splat-outline: shape(from 48% 8%,
    curve to 76% 20% with 62% 8% / 63% 19%,
    curve to 95% 40% with 88% 21% / 97% 28%,
    curve to 88% 63% with 93% 53% / 85% 52%,
    curve to 70% 88% with 92% 75% / 84% 88%,
    curve to 43% 93% with 56% 88% / 55% 94%,
    curve to 19% 81% with 32% 92% / 30% 82%,
    curve to 6% 61% with 8% 80% / 3% 72%,
    curve to 22% 35% with 9% 48% / 22% 46%,
    curve to 48% 8% with 22% 23% / 30% 8%, close);
  --object-width: 60%;
  --object-height: 56%;
  --shadow-bottom: 7%;
  --shadow-width: 77%;
  --object-center-x: 52%;
  --object-center-y: 51%;
  left: 74%; top: 29%;
}
.project--speakers {
  --splat-radius: 50% 50% 39% 61% / 62% 44% 56% 38%;
  --splat-outline: shape(from 53% 6%,
    curve to 81% 22% with 69% 6% / 70% 17%,
    curve to 91% 46% with 91% 26% / 97% 35%,
    curve to 92% 76% with 85% 57% / 98% 65%,
    curve to 67% 89% with 86% 87% / 76% 83%,
    curve to 42% 92% with 59% 94% / 50% 96%,
    curve to 23% 78% with 34% 88% / 34% 79%,
    curve to 7% 58% with 10% 77% / 4% 70%,
    curve to 15% 37% with 10% 47% / 17% 47%,
    curve to 31% 16% with 13% 25% / 18% 17%,
    curve to 53% 6% with 43% 15% / 44% 6%, close);
  --object-height: 62%;
  --shadow-width: 57%;
  --object-center-x: 51.5%;
  --object-center-y: 50.5%;
  left: 50%; top: 76%;
}
.project:is(:hover, :focus-visible) { z-index: 2; }
.project-tile { display: grid; margin: 0; }
.project-figure {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  filter: drop-shadow(0 2px 2px #631e1824)
    drop-shadow(0 clamp(4px, .65vw, 9px) clamp(5px, .8vw, 11px) #631e181f);
}
.project-splat {
  position: absolute;
  inset: 0;
  border-radius: var(--splat-radius);
  background: linear-gradient(145deg, #f45c4e 0%, #ee493b 52%, #da4035 100%);
}
@supports (clip-path: shape(from 0 0, line to 100% 0, close)) {
  .project-splat { border-radius: 0; clip-path: var(--splat-outline); }
}
.project-product {
  position: absolute;
  left: var(--object-center-x, 50%);
  top: var(--object-center-y, 50%);
  width: var(--object-width, 70%);
  height: var(--object-height, 70%);
  translate: -50% -50%;
  transition: scale .35s var(--ease);
}
.project-product::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: var(--shadow-bottom, -4%);
  width: var(--shadow-width, 58%);
  height: 12%;
  translate: -50% 50%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #49161247 0%, #49161220 43%, transparent 73%);
  filter: blur(3px);
}
.project-product img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px #43151027);
  user-select: none;
}
.project-title {
  margin-top: -.2rem;
  text-align: center;
  font: 650 clamp(1.05rem, 1.72vw, 1.35rem)/1.2 'Funnel Sans', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -.015em;
}
.project:is(:hover, :focus-visible) .project-product { scale: 1.045; }
.project:is(:hover, :focus-visible) .project-title { text-decoration: underline; text-underline-offset: .27em; }

.case { max-width: 1310px; margin: 0 auto; padding: clamp(35px, 5.6vw, 82px) var(--gutter) 0; }
.case:not([hidden]) { animation: enter .55s var(--ease) both; }
@keyframes enter { from { opacity: 0; translate: 0 7px; } }
.case-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .56fr);
  align-items: end;
  gap: 20px 38px;
  margin-bottom: clamp(25px, 4vw, 54px);
}
.case-heading h1 { margin: 0; outline: none; font-size: clamp(2.75rem, 7.5vw, 7rem); font-weight: 540; letter-spacing: -.083em; line-height: .95; }
.case-heading p { margin: 0 0 3px; max-width: 39ch; color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.54; }
.case figure { margin: 0; }
.case-stage {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 75px);
  min-height: clamp(290px, 44vw, 590px);
  border-radius: 13px;
  background: radial-gradient(ellipse at 50% 44%, var(--stage-tint, #f4f0f4), #f9f8f9 86%);
}
.case-stage img { width: auto; height: clamp(235px, 37vw, 510px); object-fit: contain; }
.case--guests { --stage-tint: #ece2ec; }
.case--light-control { --stage-tint: #eeeadc; }
.case--speakers .case-stage { padding: 0; overflow: hidden; background: #f5f5f6; }
.case--speakers .case-stage img { width: min(100%, 560px); height: clamp(410px, 54vw, 700px); object-fit: contain; }
.case figcaption { margin-top: 11px; font-size: .875rem; color: var(--text-secondary); }
.case--speakers :is(h1, .case-heading p, h2, figcaption) { color: #000; }
.case-gallery { margin-top: clamp(44px, 7vw, 91px); }
.case-gallery h2 { margin: 0 0 17px; font-size: 1.25rem; font-weight: 550; letter-spacing: -.025em; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.gallery-grid img { width: 100%; aspect-ratio: 5 / 4; object-fit: contain; border-radius: 9px; background: #f6f6f6; }
.case > .portfolio-project-end {
  margin-top: clamp(40px, 6vw, 72px);
  box-shadow: 0 0 0 100vmax #000;
  clip-path: inset(0 -100vmax);
}

@media (max-width: 760px) {
  .home {
    grid-template: repeat(2, minmax(0, 1fr)) / minmax(0, 1fr);
    gap: 0;
    height: 100svh;
    padding: 0;
  }
  .profile {
    display: grid;
    align-content: safe center;
    padding: 12px clamp(16px, 5vw, 30px);
    overflow: auto;
  }
  .profile-content {
    display: grid;
    grid-template-columns: clamp(74px, 24vw, 122px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(8px, 1.5svh, 15px) 15px;
    width: 100%;
    max-width: 470px;
  }
  .profile .portfolio-contact { grid-column: 1 / -1; margin-top: 0; }
  .portrait { aspect-ratio: 1; }
  .profile-intro { margin: 0; }
  .profile h1 { font-size: clamp(1.45rem, 6.65vw, 2.25rem); }
  .discipline { margin-top: 4px; font-size: clamp(.93rem, 4.2vw, 1.15rem); }
  .profile-location { margin-top: 5px; font-size: .75rem; line-height: 1.2; }
  .profile-bio, .profile-disciplines, .profile-skills { display: none; }
  .profile-mobile-bio {
    display: block;
    grid-column: 1 / -1;
    margin: 0;
    color: #383036;
    font-size: clamp(.8125rem, 3.5vw, .9375rem);
    line-height: 1.35;
  }
  .profile .profile-software {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding-top: 8px;
  }
  .profile-software h2 { font-size: .75rem; }
  .profile .profile-software ul { display: flex; gap: clamp(7px, 2.5vw, 14px); margin: 0; }
  .profile .profile-software li { position: relative; }
  .profile .profile-software img { width: 19px; height: 19px; }
  .profile-software li > span:not(.tool-mark) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .work { position: relative; top: auto; align-self: stretch; margin: 0; overflow: clip; }
  .project-scene { --scene-height: 50svh; height: 100%; margin-inline: clamp(9px, 3vw, 24px); }
  .project { width: min(43%, 205px, calc(var(--scene-height) * .36)); }
  .case-heading { grid-template-columns: 1fr; }
  .case-heading h1 { letter-spacing: -.071em; }
}

@media (max-width: 760px) and (max-height: 460px) and (orientation: landscape) {
  .home { grid-template: minmax(0, 1fr) / repeat(2, minmax(0, 1fr)); }
  .project-scene { --scene-height: 100svh; }
  .profile-content { grid-template-columns: clamp(60px, 12vw, 92px) minmax(0, 1fr); }
  .profile h1 { font-size: clamp(1.35rem, 4.8vw, 2rem); }
}

@media (max-width: 520px) {
  .profile-bio { font-size: .9375rem; line-height: 1.52; }
  .profile-skills ul { row-gap: 10px; }
  .portfolio-project-nav a { min-height: 44px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .case--speakers .case-stage img { height: clamp(350px, 112vw, 460px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .project:is(:hover, :focus-visible) .project-product { scale: 1; }
}
