/* =====================
   BASE
   ===================== */
* {
  cursor: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background-color: #eff0f5;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 130%;
}


/* =====================
   CUSTOM CURSOR
   ===================== */
.cursor {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  background-color: rgba(41, 43, 45, 0.15);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform: translate(-20px, -20px);
  transition: opacity 0.1s, filter 0.6s ease, backdrop-filter 0.6s, -webkit-backdrop-filter 0.6s, background-color 0.3s, border 0.3s;
}

.cursor.cursor-small {
  background-color: rgba(41, 43, 45, 0.0);
  border: 1px solid rgba(41, 43, 45, 0.3);
  -webkit-backdrop-filter: blur(0px) brightness(0.97);
  backdrop-filter: blur(0px) brightness(0.97);
}

.cursor.cursor-label {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(220, 231, 252, 0.45);
  border: 1px solid rgba(41, 43, 45, 0.25);
  -webkit-backdrop-filter: blur(12px) brightness(1.05);
  backdrop-filter: blur(12px) brightness(1.05);
  color: #191919;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.cursor.cursor-hide  { opacity: 0; }
.cursor.cursor-fade  { opacity: 0; filter: blur(12px); transition: opacity 0.6s ease, filter 0.6s ease; }

.cursor-hover        { display: inline-block; }
.nav-item.cursor-hover    { display: inline-block; width: auto; height: auto; }
.footer-link.cursor-hover { width: auto; }

@media (pointer: coarse) and (hover: none) {
  .cursor { display: none; }
}


/* =====================
   HEADER & NAVIGATION
   ===================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  height: 61px;
  background-color: #eff0f5;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
}

.header .logo-link {
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  white-space: nowrap;
}

.header .logo-link h2 { transition: all 0.3s ease; }

.header .logo-link:hover h2 {
  font-family: "Instrument Serif", serif;
  font-size: 20px;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 85px;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.nav > div {
  width: 100px;
  text-align: center;
  line-height: 50px;
  margin: auto auto;
  position: relative;
}

.nav-item {
  color: #191919;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  letter-spacing: -0.96px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  font-weight: 400;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item:hover {
  font-family: "Instrument Serif", serif;
  font-size: 20px;
  text-align: center;
}

.nav-item[target="_blank"]::after {
  content: '\ea99';
  font-family: 'tabler-icons';
  font-size: 18px;
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: relative;
  top: 0;
}

.nav-item[target="_blank"]:hover::after { opacity: 1; }

.nav > div::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 60px;
  background: transparent;
  z-index: -1;
  transition: all 0.3s ease;
}


/* =====================
   HERO
   ===================== */
@keyframes push-left {
  from { opacity: 0; transform: translateX(120px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes push-right {
  from { opacity: 0; transform: translateX(-120px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes line-grow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero {
  margin: 12vh 32px 4vh;
  display: flex;
  align-items: flex-start;
}

.hero-split {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.hero-name-row {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.hero-name {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #292b2d;
  flex-shrink: 0;
  animation: push-left 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-connector {
  flex: 1;
  height: 12px;
  background-color: #292b2d;
  margin: 0 28px;
  min-width: 24px;
  transform-origin: center center;
  animation: line-grow 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-disciplines {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero-disciplines span {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 80px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #292b2d;
}

.hero-disciplines span:nth-child(1) { animation: push-right 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero-disciplines span:nth-child(2) { animation: fade-up 0.6s ease 0.75s both; }
.hero-disciplines span:nth-child(3) { animation: fade-up 0.6s ease 0.95s both; }


/* =====================
   NARRATIVE & STATUS
   ===================== */
.narrative {
  width: 40vw;
  margin: 8vh 32px 4vh;
}

.status {
  width: 40vw;
  margin: 0 32px 8vh;
}

.narrative p,
.status p {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 165%;
  letter-spacing: -0.96px;
  color: #292b2d;
  margin: 0;
}

/* Scroll-triggered line reveal */
.fade-line {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =====================
   WORK LABEL
   ===================== */
.work-label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
  margin-top: 2vh;
  margin-bottom: 0;
}

.work-label span {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #191919;
  opacity: 0.4;
  white-space: nowrap;
}

.work-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #191919;
  opacity: 0.15;
}


/* =====================
   FEATURED WORK
   ===================== */
.featured-work {
  padding: 40px 32px;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 15vh;
  padding: 5vh 20px;
}

.work-item {
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}

.work-item:hover { opacity: 0.9; }

.work-item > a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.work-item--wide   { width: 92%; }
.work-item--medium { width: 75%; }
.work-item--narrow { width: 60%; }

.work-item--center { align-self: center; }
.work-item--left   { align-self: flex-start; }
.work-item--right  { align-self: flex-end; }

.work-media {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.work-media--16-11 { aspect-ratio: 16/11; }
.work-media--16-10 { aspect-ratio: 16/10; }

.work-media--video {
  transition: transform 1.2s ease-in-out;
}

.work-media--image-h {
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: background-size 1.2s ease-in-out;
}

.work-media--image-w {
  background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: background-size 1.2s ease-in-out;
}

.work-item:hover .work-media--video    { transform: scale(1.06); }
.work-item:hover .work-media--image-h  { background-size: auto 106%; }
.work-item:hover .work-media--image-w  { background-size: 106% auto; }

.work-details {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  transition: opacity 0.6s ease-in-out;
  gap: 40px;
  width: 100%;
}

.work-title-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  height: 26px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 125%;
  color: #191919;
  text-align: center;
}

.work-title-group .ti-circle-filled {
  font-size: 6px;
  color: #191919;
  opacity: 0.6;
}

.work-title-group .separator {
  color: #191919;
  opacity: 0.6;
  font-size: 18px;
  line-height: 26px;
}

.work-company {
  color: #191919;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: -0.96px;
  margin: 0;
  white-space: nowrap;
}

.work-title {
  color: #191919;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: -0.96px;
  margin: 0;
  white-space: nowrap;
}


/* =====================
   FOOTER
   ===================== */
.footer {
  padding: 24px 40px;
  background-color: #eff0f5;
  border-top: 1px solid rgba(25, 25, 25, 0.12);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #191919;
  opacity: 0.4;
}

.footer-links {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}

.footer-link {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #191919;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.footer-link:hover { opacity: 1; }


/* =====================
   REVEAL ANIMATION
   ===================== */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* =====================
   TYPOGRAPHY
   ===================== */
h1 {
  font-family: "Inter", sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 145%;
  letter-spacing: -0.6px;
}

h2 {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 100;
  line-height: 145%;
  letter-spacing: -0.96px;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

p {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
}

.caption, .meta, span.caption {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #aaa;
  letter-spacing: 0.2px;
}


/* =====================
   PERSONAL GALLERY
   ===================== */
.personal-gallery {
  padding: 60px 32px;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  width: 100%;
  max-width: 100%;
}

.gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
  cursor: pointer;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item .media-rest,
.gallery-item .media-hover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
}

.gallery-item .media-hover          { opacity: 0; }
.gallery-item:hover .media-rest     { opacity: 0; }
.gallery-item:hover .media-hover    { opacity: 1; }


/* =====================
   MEDIA QUERIES
   ===================== */

/* Hero responsive */
@media (max-width: 1200px) {
  .hero-name,
  .hero-disciplines span { font-size: 6vw; }
}

@media (max-width: 1024px) {
  .nav       { gap: 60px; }
  .nav > div { width: 90px; }
}

@media (max-width: 991px) {
  .hero-name,
  .hero-disciplines span { font-size: 7.5vw; }
  .hero-connector        { margin: 0 20px; }
  .work-label            { padding: 0 20px; }
  .work-grid                { gap: 12vh; padding: 5vh 32px; }
  .work-item                { width: 100%; align-self: center; }
}

@media (max-width: 768px) {
  .hero-split            { flex-direction: column; gap: 4px; }
  .hero-name-row         { flex: none; }
  .hero-connector        { display: none; }
  .hero-disciplines      { align-items: flex-start; text-align: left; }
  .hero-name,
  .hero-disciplines span { font-size: 10vw; }
  .header                   { padding: 0 24px; }
  .header h2                { font-size: 14px; }
  .nav                      { gap: 40px; }
  .nav > div                { width: 75px; }
  .nav-item                 { font-size: 14px; letter-spacing: -0.84px; }
  .nav-item:hover           { font-size: 18px; }
  .nav-item[target="_blank"]::after { display: none; }
  .work-grid                { padding: 5vh 20px; }
}

@media (max-width: 640px) {
  .header                   { padding: 0 20px; }
  .header h2                { font-size: 12px; }
  .nav                      { gap: 24px; }
  .nav > div                { width: 60px; }
  .nav-item                 { font-size: 12px; letter-spacing: -0.72px; }
  .nav-item:hover           { font-size: 16px; }
  .gallery-grid             { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .personal-gallery         { padding: 40px 16px; }
}

@media (max-width: 480px) {
  .nav                      { display: none; }
  .hero                     { margin: 8vh 20px 4vh; }
  .hero-name,
  .hero-disciplines span { font-size: max(36px, 11vw); }
  .narrative                { margin: 8vh 20px 4vh; width: auto; }
  .status                   { margin: 0 20px 6vh; width: auto; }
  .work-label            { padding: 0 10px; }
  .work-grid                { gap: 8vh; padding: 3vh 10px; }
  .work-details             { flex-direction: column; text-align: center; gap: 10px; }
  .work-title-group         { justify-content: center; }
  .footer                   { padding: 20px 24px; }
  .footer-inner             { flex-direction: column; gap: 12px; align-items: flex-start; }
  .gallery-grid             { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
