@font-face {
  font-family: "Gabriel Sans";
  src: url("/portfolio/fonts/regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gabriel Sans";
  src: url("/portfolio/fonts/medium.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gabriel Sans";
  src: url("/portfolio/fonts/bold.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fafafa;
  --ink: #18171d;
  --muted: #6d6974;
  --line: #e6e4e9;
  --accent: #7136df;
  --accent-soft: #f3eefc;
  --dark: #15121b;
  --dark-card: #201c27;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  font-family: "Gabriel Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

* {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
ul {
  margin: 0;
}

body {
  min-width: 320px;
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

::selection {
  color: var(--ink);
  background: #dfcff9;
}

.wrap {
  width: min(1180px, calc(100% - 88px));
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 30;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-dot,
.name-dot,
.stat-unit {
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}

nav > a:not(.nav-contact) {
  padding-block: 12px;
  color: #35313c;
}

nav > a:not(.nav-contact):hover {
  color: var(--accent);
}

.nav-contact {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 11px 19px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  transition: background 180ms ease, transform 180ms ease;
}

.nav-contact:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.hero {
  min-height: 500px;
  padding-block: 58px 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.portrait-photo {
  width: 172px;
  height: 172px;
  border: 5px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  box-shadow: 0 0 0 1px var(--line), 0 18px 45px rgba(25, 20, 33, 0.08);
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(50px, 5.7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.hero-role {
  margin-top: 17px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.portfolio-cta {
  width: min(330px, 100%);
  min-height: 56px;
  margin-top: 30px;
  padding: 15px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-radius: 14px;
  color: #fff;
  background: var(--accent);
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(113, 54, 223, 0.18);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.portfolio-cta span {
  font-size: 22px;
}

.portfolio-cta:hover {
  background: #5f28c3;
  box-shadow: 0 18px 40px rgba(113, 54, 223, 0.24);
  transform: translateY(-2px);
}

.results {
  position: relative;
  overflow: hidden;
  padding-block: 72px 64px;
  color: #fff;
  background: var(--dark);
}

.results::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  top: -360px;
  right: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(113, 54, 223, 0.32), transparent 68%);
  pointer-events: none;
}

.results-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.3fr);
  gap: 46px 72px;
  align-items: stretch;
}

.results .eyebrow {
  color: #ad99d6;
}

.results-heading h2 {
  max-width: 470px;
  margin-top: 16px;
  font-size: clamp(42px, 4.2vw, 56px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.results-heading h2 span {
  color: #b58aff;
}

.results-heading > p:last-child {
  max-width: 430px;
  margin-top: 23px;
  color: #b8b2c0;
  font-size: 16px;
  line-height: 1.65;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  position: relative;
  min-height: 230px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #b58aff);
  transform: scaleX(0);
  transform-origin: left;
}

.stats.is-counting .stat::before {
  animation: statline 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.stats.is-complete .stat::before {
  transform: scaleX(1);
}

.stat strong {
  color: #fff;
  font-size: clamp(52px, 5.2vw, 72px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.95;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stat > p {
  margin-top: 22px;
  color: #aaa3b2;
  font-size: 14px;
}

.stats.is-complete .stat strong {
  animation: numberland 350ms ease both;
}

.clients {
  grid-column: 1 / -1;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
}

.clients p {
  color: #b8b2c0;
  font-size: 14px;
}

.clients ul {
  isolation: isolate;
  padding: 0 0 0 10px;
  display: flex;
  justify-content: center;
  list-style: none;
}

.clients li {
  position: relative;
  margin-left: -12px;
}

.clients li:first-child {
  margin-left: 0;
}

.clients li:nth-child(1) { z-index: 5; }
.clients li:nth-child(2) { z-index: 4; }
.clients li:nth-child(3) { z-index: 3; }
.clients li:nth-child(4) { z-index: 2; }
.clients li:nth-child(5) { z-index: 1; }

.clients img {
  width: 58px;
  height: 58px;
  border: 3px solid var(--dark);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.work-section {
  padding-top: 78px;
}

.section-heading {
  margin-bottom: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2 {
  margin-top: 12px;
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-note,
.format-divider > span {
  color: var(--muted);
  font-size: 14px;
}

.format-divider {
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.format-divider h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.projects {
  display: grid;
  gap: 26px;
}

.landscape,
.portrait {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project {
  min-width: 0;
}

.project-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #17161c;
  isolation: isolate;
}

.portrait .project-cover {
  aspect-ratio: 9 / 16;
}

.project-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
}

.project-player.vertical {
  aspect-ratio: 9 / 16;
}

.project-player vturb-smartplayer {
  width: 100%;
  height: 100%;
  display: block;
}

.vturb-player-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-color: #111;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.project-player.is-loading::after {
  content: "Loading video…";
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 17, 17, 0.72);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease, opacity 250ms ease;
}

.portrait .project-cover img {
  object-fit: contain;
}

.project-cover::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  z-index: 1;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.48));
  pointer-events: none;
}

.project-cover:hover img {
  opacity: 0.88;
  transform: scale(1.025);
}

.play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  padding-left: 3px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(9px);
  transform: translate(-50%, -50%);
  transition: background 180ms ease, scale 180ms ease;
}

.project-cover:hover .play {
  background: rgba(113, 54, 223, 0.94);
  scale: 1.06;
}

.watch {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 20px;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-cover:hover .watch,
.project-cover:focus-visible .watch {
  opacity: 1;
  transform: none;
}

.projects + .format-divider {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.about {
  margin-top: 96px;
  padding-block: 72px 82px;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.3fr);
  gap: 96px;
  border-top: 1px solid var(--line);
}

.about-intro {
  position: sticky;
  top: 28px;
  align-self: start;
}

.about h2 {
  max-width: 500px;
  margin-top: 18px;
  font-size: clamp(38px, 3.55vw, 50px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.about-copy > p {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.about-copy > p + p {
  margin-top: 24px;
}

.about-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.journey-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.journey-stats > div {
  padding: 20px 18px 19px 0;
}

.journey-stats > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.journey-stats strong,
.journey-stats span {
  display: block;
}

.journey-stats strong {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.journey-stats span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.edit-types {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #e5dcef;
  border-radius: 18px;
  background: var(--accent-soft);
}

.edit-types > p {
  margin-bottom: 15px;
  font-size: 15px;
  font-weight: 600;
}

.edit-types > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.edit-types span {
  padding: 8px 13px;
  border: 1px solid #e1d8ec;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
}

.contact {
  padding-block: 72px;
  color: #fff;
  background: var(--dark);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(200px, 0.65fr) minmax(0, 1.35fr);
  gap: 54px;
}

.contact .eyebrow {
  color: #ad99d6;
  padding-top: 8px;
}

.contact-main h2 {
  font-size: clamp(40px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.contact-main p {
  margin-top: 20px;
  color: #b8b2c0;
  font-size: 17px;
}

.contact-links {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-links a {
  min-height: 50px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid #4b4653;
  border-radius: 999px;
  font-size: 15px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.contact-links a:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.contact-links .contact-primary {
  border-color: #fff;
  color: var(--ink);
  background: #fff;
}

.contact-links .contact-primary:hover {
  border-color: #dfcff9;
  background: #dfcff9;
}

.footer {
  padding-block: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer a:hover {
  color: var(--accent);
}

@keyframes statline {
  to { transform: scaleX(1); }
}

@keyframes numberland {
  50% { transform: translateY(-3px); }
  to { transform: none; }
}

@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 56px);
  }

  .results-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .results-heading h2,
  .results-heading > p:last-child {
    max-width: 680px;
  }

  .clients {
    margin-top: 4px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-intro {
    position: static;
  }

  .about h2 {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 44px);
  }

  .header {
    height: 82px;
  }

  nav {
    gap: 20px;
  }

  .landscape {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact .eyebrow {
    padding-top: 0;
  }
}

@media (max-width: 540px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .header {
    height: 74px;
    gap: 14px;
  }

  .wordmark {
    font-size: 20px;
  }

  nav > a:not(.nav-contact) {
    display: none;
  }

  .nav-contact {
    min-height: 42px;
    padding: 10px 14px;
    gap: 9px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding-block: 42px 48px;
  }

  .portrait-photo {
    width: 148px;
    height: 148px;
  }

  .hero h1 {
    margin-top: 24px;
    font-size: clamp(40px, 11.3vw, 52px);
    letter-spacing: -0.05em;
  }

  .hero-role {
    max-width: 310px;
    margin-top: 15px;
    font-size: 17px;
  }

  .portfolio-cta {
    width: min(100%, 320px);
    min-height: 54px;
    margin-top: 27px;
  }

  .results {
    padding-block: 46px 42px;
  }

  .results::before {
    width: 360px;
    height: 360px;
    top: -190px;
    right: -180px;
  }

  .results-shell {
    gap: 28px;
  }

  .results-heading h2 {
    margin-top: 13px;
    font-size: 35px;
    letter-spacing: -0.035em;
  }

  .results-heading > p:last-child {
    margin-top: 17px;
    font-size: 15px;
    line-height: 1.6;
  }

  .stats {
    gap: 10px;
  }

  .stat {
    min-height: 162px;
    padding: 17px;
    border-radius: 16px;
  }

  .stat strong {
    font-size: clamp(40px, 11vw, 48px);
    letter-spacing: -0.055em;
  }

  .stat > p {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.35;
  }

  .clients {
    padding-top: 23px;
    gap: 13px;
  }

  .clients p {
    max-width: 280px;
    line-height: 1.45;
  }

  .clients img {
    width: 49px;
    height: 49px;
  }

  .work-section {
    padding-top: 52px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2 {
    max-width: 310px;
    font-size: 31px;
  }

  .section-note {
    display: none;
  }

  .format-divider {
    margin-bottom: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .format-divider h3 {
    font-size: 18px;
  }

  .project-cover {
    border-radius: 15px;
  }

  .watch {
    display: none;
  }

  .projects + .format-divider {
    margin-top: 34px;
    padding-top: 24px;
  }

  .portrait {
    grid-template-columns: repeat(3, 80%);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    scrollbar-width: none;
  }

  .portrait::-webkit-scrollbar {
    display: none;
  }

  .portrait .project {
    scroll-snap-align: start;
  }

  .about {
    margin-top: 62px;
    padding-block: 46px 54px;
    gap: 28px;
  }

  .about h2 {
    margin-top: 15px;
    font-size: 34px;
    letter-spacing: -0.035em;
    line-height: 1.08;
  }

  .about-copy > p {
    font-size: 16px;
    line-height: 1.7;
  }

  .about-copy > p + p {
    margin-top: 21px;
  }

  .journey-stats {
    margin-top: 28px;
  }

  .journey-stats > div {
    padding: 16px 7px 16px 0;
  }

  .journey-stats > div + div {
    padding-left: 10px;
  }

  .journey-stats strong {
    font-size: 25px;
  }

  .journey-stats span {
    font-size: 12px;
  }

  .edit-types {
    margin-top: 24px;
    padding: 20px;
    border-radius: 16px;
  }

  .edit-types span {
    padding: 8px 11px;
    font-size: 13px;
  }

  .contact {
    padding-block: 48px;
  }

  .contact-inner {
    gap: 19px;
  }

  .contact-main h2 {
    font-size: 36px;
    letter-spacing: -0.035em;
  }

  .contact-main p {
    margin-top: 17px;
    font-size: 16px;
  }

  .contact-links {
    margin-top: 27px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .contact-links a {
    min-width: 0;
    padding: 11px 16px;
    gap: 12px;
    font-size: 14px;
  }

  .footer {
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
  }

  .project-player {
    border-radius: 15px;
  }
}

@media (max-width: 360px) {
  .wordmark {
    font-size: 18px;
  }

  .nav-contact {
    padding-inline: 11px;
    font-size: 12px;
  }

  .results-heading h2 {
    font-size: 32px;
  }

  .stat {
    padding: 14px;
  }

  .stat strong {
    font-size: 38px;
  }

  .journey-stats {
    grid-template-columns: 1fr;
  }

  .journey-stats > div,
  .journey-stats > div + div {
    padding: 12px 0;
    display: grid;
    grid-template-columns: 74px 1fr;
    align-items: center;
    border-left: 0;
  }

  .journey-stats > div + div {
    border-top: 1px solid var(--line);
  }

  .journey-stats span {
    margin-top: 0;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
