/* Valeria Kim — dark B&W, typography-led landing */

:root {
  --color-bg: #030303;
  --color-surface: #0c0c0c;
  --color-surface-elevated: #121212;
  --color-ink: #f4f4f4;
  --color-ink-muted: #9ca3af;
  --color-line: #2a2a2a;
  --color-line-strong: #3f3f3f;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: clamp(5rem, 12vw, 10rem);
  --max-content: 76rem;
  --header-h: 3.25rem;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-bg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 2rem, 0);
  filter: blur(6px);
  will-change: opacity, transform, filter;
}

[data-reveal].is-visible {
  animation: reveal-in 1s var(--ease-out-expo) forwards;
  animation-delay: var(--reveal-delay, 0s);
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: var(--header-h);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(to bottom, rgba(3, 3, 3, 0.94), transparent);
  pointer-events: none;
}

.site-header__geo {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  pointer-events: auto;
}

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  transform: scale(1.04);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__img {
    animation: hero-ken 28s ease-in-out infinite alternate;
  }
}

@keyframes hero-ken {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__img {
    animation: none;
    transform: scale(1.04);
  }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 120% 80% at 50% 100%, rgba(0, 0, 0, 0.92) 0%, transparent 55%),
    linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.65) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: calc(var(--header-h) + var(--space-lg)) var(--space-md) var(--space-3xl);
  animation: hero-intro 1.15s var(--ease-out-expo) both;
}

@keyframes hero-intro {
  from {
    opacity: 0;
    transform: translate3d(0, 2rem, 0);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__inner {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.hero__kicker {
  margin: 0 0 var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 11vw, 7.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero__tagline {
  margin: 0 0 var(--space-lg);
  max-width: 32rem;
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.01em;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: background 0.35s var(--ease-out-expo), border-color 0.35s ease, color 0.35s ease,
    transform 0.35s var(--ease-out-expo);
}

.hero__cta:hover {
  background: #fff;
  color: #030303;
  border-color: #fff;
  transform: translateY(-2px);
}

/* Typographic showcase */
.type-showcase {
  padding: var(--space-3xl) var(--space-md);
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  overflow: hidden;
}

.type-showcase__inner {
  max-width: var(--max-content);
  margin: 0 auto;
}

.type-showcase__line {
  margin: 0;
  line-height: 0.85;
}

.type-showcase__word {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 18vw, 14rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--color-ink);
  transition: color 0.4s ease;
}

.type-showcase__line--1 .type-showcase__word {
  color: var(--color-ink);
}

.type-showcase__line--2 {
  text-align: center;
}

.type-showcase__line--2 .type-showcase__word {
  -webkit-text-stroke: 1px rgba(244, 244, 244, 0.35);
  color: transparent;
}

.type-showcase__line--3 {
  text-align: right;
}

.type-showcase__word--italic {
  font-style: italic;
  font-weight: 500;
}

.type-showcase__caption {
  margin: var(--space-xl) 0 0;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink-muted);
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: no-preference) {
  .type-showcase__line--1 .type-showcase__word,
  .type-showcase__line--3 .type-showcase__word {
    animation: type-float 14s ease-in-out infinite;
  }

  .type-showcase__line--2 .type-showcase__word {
    animation: type-float 16s ease-in-out infinite reverse;
  }
}

@keyframes type-float {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(0.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .type-showcase__line--1 .type-showcase__word,
  .type-showcase__line--2 .type-showcase__word,
  .type-showcase__line--3 .type-showcase__word {
    animation: none;
  }
}

.about {
  padding: var(--space-3xl) var(--space-md);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}

.about__grid {
  display: grid;
  gap: var(--space-xl);
  max-width: var(--max-content);
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr);
    gap: var(--space-2xl);
  }
}

.about__label {
  margin: 0 0 var(--space-xs);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.about__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.about__text p {
  margin: 0 0 var(--space-md);
  color: var(--color-ink-muted);
  max-width: 36rem;
  font-size: 1.0625rem;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__text strong {
  color: var(--color-ink);
  font-weight: 600;
}

.about__figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-line-strong);
  background: var(--color-surface-elevated);
}

.about__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

@media (hover: hover) and (pointer: fine) {
  .about__figure:hover img {
    transform: scale(1.04);
  }
}

.gallery {
  padding: var(--space-3xl) var(--space-md);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}

.gallery__head {
  max-width: var(--max-content);
  margin: 0 auto var(--space-xl);
}

.gallery__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.gallery__subtitle {
  margin: 0;
  max-width: 28rem;
  font-size: 1rem;
  color: var(--color-ink-muted);
  letter-spacing: 0.03em;
}

.gallery__masonry {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max-content);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  grid-auto-rows: minmax(100px, auto);
}

@media (min-width: 640px) {
  .gallery__masonry {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    grid-auto-rows: minmax(120px, auto);
  }
}

@media (min-width: 1024px) {
  .gallery__masonry {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(130px, auto);
  }
}

.gallery__masonry-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  position: relative;
}

.gallery__masonry-item img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  aspect-ratio: unset;
  transition: transform 0.55s var(--ease-out-expo), opacity 0.4s ease;
}

.gallery__masonry-item--tall {
  grid-row: span 2;
}

.gallery__masonry-item--tall img {
  min-height: 280px;
}

.gallery__masonry-item--wide {
  grid-column: span 2;
}

.gallery__masonry-item--wide img {
  min-height: 200px;
}

@media (hover: hover) and (pointer: fine) {
  .gallery__masonry-item:hover img {
    transform: scale(1.06);
  }
}

.contact {
  padding: var(--space-3xl) var(--space-md);
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}

.contact__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact__lead {
  margin: 0 0 var(--space-lg);
  color: var(--color-ink-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.contact__actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

@media (min-width: 480px) {
  .contact__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.contact__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.7rem 1.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--color-line-strong);
  background: transparent;
  color: var(--color-ink);
  transition: background 0.35s var(--ease-out-expo), border-color 0.35s ease, color 0.35s ease,
    transform 0.35s var(--ease-out-expo);
}

.contact__link:hover {
  background: var(--color-ink);
  color: var(--color-bg);
  border-color: var(--color-ink);
  transform: translateY(-2px);
}

.site-footer {
  padding: var(--space-lg) var(--space-md);
  background: var(--color-bg);
}

.site-footer__copy {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}
