@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
}

:root {
  color-scheme: dark;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #f4f0e7;
  background: #20201e;
  --edge: clamp(1.5rem, 5.2vw, 7rem);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 280px; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: #f4f0e730; }

.studio {
  position: relative;
  isolation: isolate;
  min-height: max(100svh, 42rem);
  overflow: hidden;
  background: #252523;
}

.studio-background, .studio-shade { position: absolute; inset: 0; pointer-events: none; }
.studio-background { z-index: 0; }
.studio-background img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 48% 50%; }
.studio-shade { z-index: 1; background: linear-gradient(180deg, #1212100a, transparent 38%, #10100f55 80%, #10100fa6); }

.identity-position {
  position: absolute;
  z-index: 2;
  top: 34svh;
  left: var(--edge);
  right: var(--edge);
  pointer-events: none;
  text-align: center;
}

.identity-track { transform: translate3d(var(--type-x, 0px), var(--type-y, 0px), 0); }

h1 {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(5rem, 11.6vw, 15rem);
  font-weight: 800;
  font-variation-settings: "opsz" 32, "wght" 800;
  letter-spacing: -0.065em;
  line-height: 0.92;
  white-space: nowrap;
  text-transform: uppercase;
  animation: identity-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.subject-position {
  position: absolute;
  z-index: 3;
  left: 48%;
  bottom: 0;
  height: min(78svh, 950px);
  aspect-ratio: 1122 / 1402;
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.subject-track { height: 100%; transform: translate3d(var(--person-x, 0px), var(--person-y, 0px), 0); }
.subject-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  animation: portrait-in 1.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.studio-footer {
  position: relative;
  z-index: 4;
  min-height: max(100svh, 42rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem var(--edge) 3.5rem;
  pointer-events: none;
}

.philosophy {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(1.125rem, 1.8vw, 1.8rem);
  font-weight: 400;
  font-variation-settings: "opsz" 24;
  line-height: 1.5;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.connections { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; pointer-events: auto; }
.connection {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 48px;
  min-width: 110px;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #f4f0e7;
  text-decoration: none;
  border-bottom: 1px solid #f4f0e74d;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.connection svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s ease; }
.connection:hover { border-color: #f4f0e7; }
.connection:hover svg { transform: translate(2px, -1px); }
.connection:focus-visible { outline: 2px solid #f4f0e7; outline-offset: 7px; }

@keyframes identity-in {
  from { opacity: 0.15; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes portrait-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-paused h1, .page-paused .subject-photo { animation-play-state: paused; }

@media (min-width: 721px) and (max-width: 1040px) {
  .identity-position { top: 28svh; }
  h1 { font-size: 11.4vw; }
  .subject-position { height: 74svh; left: 49%; }
  .studio-footer { gap: 2rem; padding-bottom: 3rem; }
  .philosophy { max-width: 17rem; }
  .connections { gap: 1.5rem; }
}

@media (max-width: 720px) {
  .studio, .studio-footer { min-height: max(100svh, 48rem); }
  .studio-background img { object-position: 49% 50%; }
  .identity-position { top: 7%; left: 1.5rem; right: 1.5rem; }
  h1 { font-size: 22vw; line-height: 0.92; letter-spacing: -0.067em; }
  h1 span { display: block; }
  .subject-position { height: max(88svh, 700px); left: 52%; }
  .studio-footer { flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 1.15rem; padding: 3rem var(--edge) 1.75rem; background: linear-gradient(transparent 60%, #11111000 66%, #111110b8 86%, #111110ed); }
  .philosophy { font-size: 1.125rem; line-height: 1.45; max-width: 24rem; }
  .connections { gap: 1.75rem; }
  .connection { min-width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .identity-track, .subject-track { transform: none; }
}
