:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-muted: #f2ede6;
  --ink: #1e1d1b;
  --ink-muted: #5e5a54;
  --hairline: #e2dbd2;
  --accent: #7a6a58;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-max: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(3.5rem, 8vw, 6.5rem);
  --ease: 180ms ease;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
a {
  font-family: inherit;
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

/* Best-effort media deterrence applied strictly to media containers and elements */
.media-protected,
.media-protected img,
.media-protected video {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.portfolio {
  width: 100%;
}

.container {
  width: min(100%, var(--container-max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-space);
}

.section-heading {
  margin: 0 0 1.25rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

/* 1. Introductory Hero */
.hero {
  padding-top: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: var(--section-space);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}

.hero-media {
  width: min(100%, 340px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--surface-muted);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center 22%;
}

.hero-content {
  min-width: 0;
}

.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4.2rem, 10vw, 8.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-description {
  margin: 1.15rem 0 0;
  max-width: 34ch;
  color: var(--ink-muted);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.55;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  margin-top: 1.65rem;
}

.social-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  min-height: 40px;
  font-size: clamp(1.12rem, 1.4vw, 1.42rem);
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.15rem;
  transition: border-color var(--ease), color var(--ease);
}

.social-sub {
  font-size: 0.78em;
  color: var(--ink-muted);
  font-weight: 400;
}

.social-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1.2rem;
}

.email-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-size: clamp(1.12rem, 1.4vw, 1.45rem);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  overflow-wrap: anywhere;
  transition: opacity var(--ease), border-color var(--ease);
}

.email-copy-btn:hover {
  opacity: 0.72;
}

.copy-status {
  font-size: 1.15rem;
  color: var(--accent);
  min-height: 1.25em;
}

@media (min-width: 768px), (orientation: landscape) and (min-width: 560px) {
  .hero-grid {
    grid-template-columns: minmax(220px, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(2rem, 5vw, 4.5rem);
  }

  .hero-media {
    width: min(100%, 420px);
    margin-inline: 0;
  }
}

/* 2. About Me */
.about {
  border-top: 1px solid var(--hairline);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-copy {
  min-width: 0;
}

.about .section-heading {
  margin-bottom: clamp(2.75rem, 5vw, 3.75rem);
}

.about-text {
  margin: 0;
  max-width: 40ch;
  color: var(--ink-muted);
  font-size: clamp(1.28rem, 1.8vw, 1.58rem);
  line-height: 1.7;
}

.about-collage {
  position: relative;
  width: min(100%, 480px);
  margin-inline: auto;
  padding-bottom: 15%;
}

.collage-item {
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--surface-muted);
}

.collage-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Photo 2 covers ~68% of total image area; Photo 3 covers ~32% */
.collage-primary {
  width: 72%;
  margin-right: auto;
}

.collage-primary img {
  object-position: center 20%;
}

.collage-secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  border: 6px solid var(--bg);
}

.collage-secondary img {
  object-position: center 70%;
}

@media (min-width: 768px), (orientation: landscape) and (min-width: 560px) {
  .about-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .about-collage {
    margin-inline: 0 0;
    justify-self: end;
  }
}

/* 3. Content Highlights */
.highlights {
  border-top: 1px solid var(--hairline);
}

.categories-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 4.75rem);
}

.category-block {
  min-width: 0;
}

.category-heading {
  margin: 0 0 1.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-transform: lowercase;
}

/* Single horizontal row across mobile and desktop */
.video-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.35rem;
}

.video-gallery::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .video-gallery {
    scrollbar-width: thin;
    scrollbar-color: var(--hairline) transparent;
    padding-bottom: 0.75rem;
  }

  .video-gallery::-webkit-scrollbar {
    display: block;
    height: 6px;
  }

  .video-gallery::-webkit-scrollbar-track {
    background: transparent;
  }

  .video-gallery::-webkit-scrollbar-thumb {
    background-color: var(--hairline);
    border-radius: 999px;
  }
}

.video-card {
  flex: 0 0 80%;
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .video-card {
    flex: 0 0 clamp(220px, 22vw, 255px);
  }
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background-color: var(--surface-muted);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background-color: transparent;
}

/* Custom video controls */
.video-control-btn {
  position: absolute;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background-color: rgba(20, 19, 18, 0.56);
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  backdrop-filter: blur(4px);
  transition: background-color var(--ease), transform var(--ease), opacity var(--ease);
}

.video-control-btn:hover {
  background-color: rgba(20, 19, 18, 0.78);
}

.video-control-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.video-play-btn {
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.video-play-btn svg {
  width: 20px;
  height: 20px;
}

.video-sound-btn {
  top: calc(50% - 62px);
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  background-color: rgba(20, 19, 18, 0.44);
  border-color: rgba(255, 255, 255, 0.35);
  opacity: 0;
  pointer-events: none;
}

.video-control-btn.is-visible,
.video-control-btn:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.video-sound-btn svg {
  width: 18px;
  height: 18px;
}

.video-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.video-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 28px;
}

.video-brand-logo {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(30, 29, 27, 0.1);
  background-color: var(--surface);
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.video-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.video-brand-name {
  font-size: 1.22rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.3;
}

.tiktok-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  font-size: 1.15rem;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.1rem;
  transition: color var(--ease), border-color var(--ease);
}

.tiktok-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* 4. Brand Collaboration Logos */
.brands {
  border-top: 1px solid var(--hairline);
}

.brand-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.85rem, 2vw, 1.35rem);
}

.brand-logo-item {
  position: relative;
  width: clamp(68px, 8vw, 88px);
  aspect-ratio: 1 / 1;
}

.brand-logo-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  background-color: var(--surface);
  border: 1px solid rgba(30, 29, 27, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

@media (hover: hover) and (pointer: fine) {
  .brand-logo-item[data-brand-name]::after {
    content: attr(data-brand-name);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translate(-50%, 4px);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    background-color: var(--ink);
    color: var(--bg);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--ease), transform var(--ease);
    z-index: 5;
  }

  .brand-logo-item[data-brand-name]:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* 5. Final Contact Call to Action */
.contact {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(4rem, 9vw, 7rem);
}

.contact-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.contact-line {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.38rem, 3vw, 2.45rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34ch;
  overflow-wrap: anywhere;
}

.email-copy-btn--cta {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  padding: 0 0 0.06em;
  display: inline;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
