@font-face {
  font-family: 'F18';
  src: url('fonts/f18-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'F56';
  src: url('fonts/f56-regular.woff2') format('woff2'),
       url('fonts/f56-regular.woff') format('woff'),
       url('fonts/f56-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #000000;
  --text: #ffffff;
  --text-muted: #999999;
  --text-body: #cccccc;
  --dot: #E20712;
  --divider: #262626;
  --gap: 16px;

  --font-display: 'F56', sans-serif;
  --font-body: 'F18', sans-serif;
  --font-mono: 'F56', sans-serif;
  --hero-red: #E20712;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 400;
  overflow-x: hidden;
}

/* ── SKIP LINK ── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--dot);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ── SCROLL NAV ── */

.scroll-nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  width: fit-content;
  white-space: nowrap;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 12px 24px;
  border-radius: 100px;
  overflow: hidden;
  transition: transform 0.35s ease;
  isolation: isolate;
  will-change: transform;
}

.scroll-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(60px) saturate(200%) brightness(1.15);
  -webkit-backdrop-filter: blur(60px) saturate(200%) brightness(1.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: -1;
}

.scroll-nav::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
}

.scroll-nav.visible {
  transform: translateX(-50%) translateY(0);
}

.nav-logo-name,
.nav-logo-sub,
.nav-links a {
  color: white;
  position: relative;
  z-index: 1;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo:hover {
  transform: scale(1.1);
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.nav-logo-sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.nav-links a:hover {
  color: var(--text);
  transform: scale(1.25);
}

.nav-links a.active {
  color: white;
  transform: scale(1.18);
}

/* ── HERO ── */

.hero {
  background: var(--bg);
  min-height: 100vh;
  padding: 100px clamp(20px, 6vw, 32px) clamp(48px, 8vh, 100px);
  text-align: center;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.hero h1,
.hero-tagline,
.hero-social {
  position: relative;
  z-index: 1;
}

.hero-avatar {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20%,
    black 60%,
    transparent 85%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20%,
    black 60%,
    transparent 85%
  );
}

.hero-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 0%;
  transform: translateY(-10%);
  mix-blend-mode: normal;
  filter: grayscale(1) contrast(1.15);
  opacity: 0.55;
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(20px, 6vw, 36px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #ffffff;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(13px, 5.5vw, 22px);
    white-space: normal;
    word-break: break-word;
    max-width: calc(100vw - 48px);
  }
}

.hero-tagline {
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 3vw, 1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  letter-spacing: 0.02em;
  max-width: 80vw;
}

.hero-social {
  display: flex;
  gap: clamp(14px, 4vw, 24px);
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-social a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  position: relative;
}

.hero-social a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.copy-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.copy-tip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.scroll-hint {
  display: none;
}

/* ── SECTIONS ── */

.photo-section {
  padding: 60px 32px 0;
  scroll-margin-top: 80px;
}

.photo-section:first-child {
  padding-top: 80px;
}

.photo-grid {
  padding-bottom: 60px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.dot {
  width: clamp(0.9rem, 1.5vw, 1.4rem);
  height: clamp(0.9rem, 1.5vw, 1.4rem);
  border-radius: 50%;
  background: var(--dot);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot svg {
  width: 52%;
  height: 52%;
}

.section-header h2 {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.5vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
}

.divider {
  flex: 1;
  height: 2px;
  background: var(--divider);
}

/* ── PHOTO GRID ── */

.photo-grid {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
}

.masonry-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.88;
  transition: opacity 0.3s ease;
  cursor: zoom-in;
}

.photo-grid img:hover {
  opacity: 1;
}

/* ── LIGHTBOX ── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  transform: scale(0.96);
  transition: transform 0.3s ease;
  cursor: default;
}

.lightbox.open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  font-size: 1.1rem;
  line-height: 1;
}

.lightbox-close:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* ── CONTACT FOOTER ── */

footer.contact-footer {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--hero-red) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px 40px;
  position: relative;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s;
}

.contact-email:hover {
  opacity: 0.75;
}

.contact-sub {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  z-index: 1;
}

.contact-sub a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.contact-sub a:hover {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .photo-section {
    padding: 40px 16px;
  }

  .hero {
    padding: 80px clamp(20px, 6vw, 32px) 60px;
  }

  .hero-avatar img {
    object-position: 65% 0%;
  }

  .section-header h2 {
    font-size: 1.35rem;
  }

  .dot {
    width: 1.35rem;
    height: 1.35rem;
  }
}

/* ── MOBILE NAV ── */

.mob-trigger,
.mob-overlay {
  display: none;
}

@media (max-width: 960px) {
  .scroll-nav {
    display: none;
  }

  .mob-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    right: 16px;
    top: 16px;
    transform: translateX(calc(100% + 24px));
    z-index: 200;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 100px;
    padding: 14px 22px;
    color: white;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    will-change: transform;
  }

  .mob-icon {
    flex-shrink: 0;
    opacity: 0.9;
  }

  .mob-trigger.visible {
    transform: translateX(0);
  }

  .mob-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mob-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  .mob-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(14, 14, 14, 0.88);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    padding: 0 0 40px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    will-change: transform;
  }

  .mob-overlay.open .mob-panel {
    transform: translateY(0);
  }

  .mob-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 28px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mob-panel-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
  }

  .mob-panel-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: white;
  }

  .mob-panel-sub {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
  }

  .mob-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  .mob-panel-links {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
  }

  .mob-panel-links a {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 14px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .mob-link-icon {
    width: 28px;
    height: 28px;
    background: var(--dot);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mob-link-icon svg {
    width: 55%;
    height: 55%;
  }

  .mob-panel-links a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }

  .mob-panel-links a:active {
    background: rgba(255, 255, 255, 0.15);
  }
}
