:root {
  --bg: #050505;
  --fg: #f4f4f4;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.12);
  --header: 72px;
  --pad: clamp(20px, 4vw, 56px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

::selection {
  background: #fff;
  color: #000;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: none;
}

.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 80;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.cursor.is-hover {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: #fff;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #000;
  display: grid;
  place-content: center;
  gap: 28px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
}

.loader-name {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.loader-bar {
  width: min(220px, 50vw);
  height: 1px;
  background: #222;
  margin-inline: auto;
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  animation: load 1.4s ease forwards;
}

@keyframes load {
  to {
    width: 100%;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  mix-blend-mode: difference;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: url("../assets/images/portrait.png") center / cover;
  filter: grayscale(1);
}

.nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
}

.nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 28px;
  height: 16px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transition: transform 0.3s ease, top 0.3s ease;
}

.nav-toggle span:first-child {
  top: 4px;
}

.nav-toggle span:last-child {
  top: 11px;
}

.nav-toggle.is-open span:first-child {
  top: 8px;
  transform: rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  top: 8px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: grayscale(1) contrast(1.18) brightness(0.68);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 22%, transparent 58%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(ellipse at center, transparent 28%, rgba(0, 0, 0, 0.45) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-name {
  position: absolute;
  left: var(--pad);
  bottom: 18%;
  z-index: 2;
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(72px, 17vw, 260px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.8;
  white-space: nowrap;
}

.hero-name span {
  display: block;
  margin-left: -0.06em;
}

.hero-location,
.hero-role {
  position: absolute;
  z-index: 2;
  bottom: 32px;
}

.hero-location {
  left: var(--pad);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ececec;
}

.hero-role {
  right: var(--pad);
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(16px, 1.7vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 18px;
  background: #000;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: ticker 28s linear infinite;
}

.marquee-track span {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(18px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: #d8d8d8;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: clamp(80px, 12vh, 140px) var(--pad);
  scroll-margin-top: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 720px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head h2,
.about-copy h2,
.contact h2 {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.service-list,
.work-list {
  list-style: none;
}

.service-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.service-item:last-child {
  border-bottom: 1px solid var(--line);
}

.service-index {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 10px;
}

.service-body h3 {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: 12px;
}

.service-body p,
.work-item p,
.teach-card p,
.about-copy p {
  max-width: 52ch;
  color: #c5c5c5;
  font-size: 16px;
}

.work {
  position: relative;
}

.work-item a {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.work-item:last-child a {
  border-bottom: 1px solid var(--line);
}

.work-item h3 {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.06em;
  grid-column: 2;
  grid-row: 1;
  transition: transform 0.4s ease;
}

.work-item p {
  grid-column: 2;
  margin-top: 6px;
}

.work-meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  grid-column: 1;
  grid-row: 1 / span 2;
}

.work-arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-size: 28px;
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-item a:hover h3 {
  transform: translateX(12px);
}

.work-item a:hover .work-arrow {
  opacity: 1;
  transform: translate(4px, -4px);
}

.work-preview {
  position: fixed;
  width: 280px;
  height: 360px;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
  opacity: 0;
  transform: translate(-40%, -50%) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.work-preview.is-on {
  opacity: 1;
  transform: translate(-40%, -50%) scale(1);
}

.work-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.teach-card {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  min-height: 240px;
}

.teach-year {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 20px;
}

.teach-card h3 {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about-media img {
  width: 100%;
  height: min(78vh, 760px);
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.about-copy {
  display: grid;
  gap: 20px;
}

.about-stats {
  list-style: none;
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

.about-stats strong {
  display: block;
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 40px;
  letter-spacing: -0.05em;
}

.about-stats span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.quote-list p {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.25;
  margin-bottom: 24px;
}

.quote-list footer {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact h2 {
  font-size: clamp(40px, 8vw, 120px);
  margin: 20px 0 36px;
  white-space: pre-line;
}

.contact-mail {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: -0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  width: fit-content;
  padding-bottom: 6px;
}

.contact-mail:hover {
  border-bottom-color: #fff;
}

.contact-links {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-link {
  position: relative;
  display: inline-flex;
  color: #cfcfcf;
}

.contact-link-hint {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #111;
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #fff;
}

.contact-link:hover .contact-link-hint,
.contact-link:focus-visible .contact-link-hint {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--pad) 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.is-embed,
.is-embed a,
.is-embed button {
  cursor: auto;
}

.is-embed .cursor,
.is-embed .cursor-dot,
.is-embed .loader {
  display: none;
}

@media (hover: none), (pointer: coarse) {
  body,
  button {
    cursor: auto;
  }

  .cursor,
  .cursor-dot,
  .work-preview {
    display: none;
  }
}

@media (max-width: 980px) {
  .work-item a {
    grid-template-columns: 1fr auto;
  }

  .work-meta {
    grid-column: 1;
    grid-row: auto;
  }

  .work-item h3,
  .work-item p {
    grid-column: 1;
  }

  .work-arrow {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .teaching-grid,
  .quote-list,
  .about {
    grid-template-columns: 1fr;
  }

  .about-media img {
    height: 52vh;
  }

  .hero-name {
    font-size: clamp(52px, 18vw, 120px);
    bottom: 22%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .loader-bar span,
  .marquee-track,
  .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
    z-index: 51;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: #000;
    mix-blend-mode: normal;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--pad);
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    font-family: "Inter Tight", Inter, sans-serif;
    font-size: 36px;
    letter-spacing: -0.04em;
    text-transform: none;
  }

  .site-header {
    mix-blend-mode: normal;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
  }

  .hero-location,
  .hero-role {
    position: static;
    z-index: 2;
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--pad) 28px;
  }

  .hero-name {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 0 0 24px;
    white-space: normal;
    line-height: 0.9;
  }

  .hero-role {
    margin-bottom: 8px;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
  }
}
