/* =========================================
   BASE RESET
   ========================================= */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: #ffffff;
  color: #000000;
  font-weight: 500;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
}

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

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #ffffff;
  background-color: #000000;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

button:active, a:active {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */

/* Breakpoints:
   sm  — 640px
   md  — 768px
   lg  — 1024px
   xl  — 1280px
*/

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Mobile (default) */
h1 { font-size: 2.25rem; }  /* 36px */
h2 { font-size: 2rem; }     /* 32px */
h3 { font-size: 1.5rem; }   /* 24px */
h4 { font-size: 1.25rem; }  /* 20px */
h5 { font-size: 1.125rem; } /* 18px */
h6 { font-size: 1rem; }     /* 16px */

p  { font-size: 1rem; }     /* 16px — 18px on desktop */

/* Tablet (md — 768px+) */
@media (min-width: 768px) {
  h1 { font-size: 3.25rem; }  /* 52px */
  h2 { font-size: 2.5rem; }   /* 40px */
  h3 { font-size: 1.75rem; }  /* 28px */
  h4 { font-size: 1.375rem; } /* 22px */
  h5 { font-size: 1.125rem; } /* 18px */
  h6 { font-size: 1rem; }     /* 16px */
}

/* Desktop (lg — 1024px+) */
@media (min-width: 1024px) {
  p  { font-size: 1.125rem; } /* 18px */
  p strong { font-size: 1.125rem; }
  h1 { font-size: 4rem; }    /* 64px */
  h2 { font-size: 3rem; }    /* 48px */
  h3 { font-size: 2rem; }    /* 32px */
  h4 { font-size: 1.5rem; }  /* 24px */
  h5 { font-size: 1.25rem; } /* 20px */
  h6 { font-size: 1rem; }    /* 16px */
}

/* =========================================
   HEADER & NAV
   ========================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  padding-block: 1.25rem;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(255, 255, 255, 0.1);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 2rem;
}

.site-logo img {
  height: 22px;
  width: auto;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav-links a {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.site-nav-links a:hover {
  opacity: 0.55;
}

.scrolled .site-nav-links a {
  opacity: 0.55;
}

.scrolled .site-nav-links a:hover,
.scrolled .site-nav-links a.active {
  opacity: 1;
}

/* =========================================
   HERO
   ========================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  color: #ffffff;
  padding-block: 6rem 4rem;
  min-height: 600px;
  height: 100vh;
}


.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 880px;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-content h1 { font-size: 4rem; }
}

@media (min-width: 1024px) {
  .hero-content h1 { font-size: 5rem; }
}

.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 1.5rem 2rem 2.5rem;
}

@media (min-width: 1024px) {
  .hero-bottom {
    padding-inline: 2rem;
    flex-wrap: nowrap;
  }
}

.hero-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: #ffffff;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #ffffff;
  opacity: 0.6;
  white-space: nowrap;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero-social a {
  color: #ffffff;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.hero-social a:hover {
  opacity: 1;
}

.hero-profile > div {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.3;
}

.hero-profile-title {
  font-size: 0.9375rem;
  font-weight: 400;
  opacity: 0.6;
}

.hero-profile-photo {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.25;
  transition: background-color 0.4s ease, opacity 0.4s ease, backdrop-filter 0.4s ease;
  min-width: 120px;
  text-align: center;
}

/* Solid black, hover → glass */
.btn-primary {
  background-color: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.btn-primary:hover {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Glass, hover → solid black */
.btn-secondary {
  background-color: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Text only */
.btn-tertiary {
  background-color: transparent;
  color: #ffffff;
  padding-inline: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-tertiary:hover {
  opacity: 0.7;
}

/* =========================================
   STORIES
   ========================================= */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes stories-gradient-animation {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.stories {
  position: relative;
  background-color: #000000;
  color: #ffffff;
  padding-block: 5rem 3rem;
  overflow: hidden;
}

.stories::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 60%, hsla(257, 70%, 40%, 0.7) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, hsla(212, 100%, 50%, 0.5) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 80%, hsla(25, 90%, 50%, 0.55) 0%, transparent 40%),
    radial-gradient(ellipse at 40% 90%, hsla(304, 70%, 38%, 0.5) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 10%, hsla(224, 80%, 45%, 0.4) 0%, transparent 40%);
  background-size: 200% 200%;
  animation: stories-gradient-animation 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .stories::after { animation: none; }
}


.stories .container {
  position: relative;
  z-index: 2;
}

.stories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.stories-header h2 {
  margin-bottom: 1rem;
}

.stories-header p {
  max-width: 580px;
  font-size: 1.25rem;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .stories-header p { font-size: 1.375rem; }
}

@media (min-width: 1024px) {
  .stories-header p { font-size: 1.5rem; }
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.btn-primary svg {
  flex-shrink: 0;
}

.stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.4s ease;
}

.story-card:hover {
  background-color: rgba(0, 0, 0, 1);
}

.story-card img {
  width: calc(100% + 4rem);
  max-width: calc(100% + 4rem);
  margin: -2rem -2rem 0 -2rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.story-card:hover img {
  filter: grayscale(0%);
}

.story-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #ffffff;
  margin-top: 0.5rem;
}

.story-card p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  opacity: 0.55;
  margin-top: auto;
}

.story-meta__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stories-loading {
  opacity: 0.4;
}

.stories-more {
  margin-top: 3rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* =========================================
   ABOUT
   ========================================= */

.about {
  background-color: #000000;
  color: #ffffff;
  padding-block: 6rem 3rem;
}

.about-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.about-header h2 {
  margin-bottom: 1rem;
}

.about-header p {
  max-width: 720px;
  font-size: 1.25rem;
  opacity: 0.8;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .about-header p { font-size: 1.375rem; }
}

@media (min-width: 1024px) {
  .about-header p { font-size: 1.5rem; }
}

.about-body {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2.5rem;
}

.about-body p {
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.7;
}

.about-body p + p {
  margin-top: 1.5rem;
}


/* =========================================
   WORK
   ========================================= */

.work {
  background-color: #000000;
  color: #ffffff;
  padding-block: 5rem 2rem;
}

.work-header {
  max-width: 560px;
  margin-bottom: 4rem;
}

.work-header h2 {
  margin-bottom: 1rem;
}

.work-header p {
  font-size: 1.25rem;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .work-header p { font-size: 1.375rem; }
}

@media (min-width: 1024px) {
  .work-header p { font-size: 1.5rem; }
}

/* Work items */
.work-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-block: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
  .work-item {
    grid-template-columns: 280px 1fr;
    gap: 4rem;
  }
}

.work-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.work-item-meta h3 {
  margin-bottom: 0;
}

.work-item-date {
  font-size: 0.9375rem;
  opacity: 0.55;
}

.work-item-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.work-item-body p {
  opacity: 0.8;
  line-height: 1.7;
}

.work-item--placeholder {
  opacity: 0.6;
}

.work-item--no-border {
  border-top: none;
}

.work-item-section {
  padding-bottom: 5rem;
}

.work-item-section .work-item {
  padding-block-end: 0;
}


/* Past work */
.work-past {
  padding-bottom: 5rem;
}

.work-past-content {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 2.5rem 1.5rem;
}

.work-past .portfolio-slider__track-wrapper {
  margin-top: 2rem;
}

.work-past-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.work-past-content > p {
  max-width: 760px;
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.work-past-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .work-past-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .work-past-grid { grid-template-columns: repeat(3, 1fr); }
}

.work-past-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.work-past-card p {
  font-size: 0.9375rem;
  opacity: 0.6;
}

.work-past-img--placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.about-experience {
  margin-top: 3rem;
  margin-bottom: 0;
}

.about .btn-primary {
  background-color: rgba(255, 255, 255, 0.1);
}

.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.work-item-section .work-item-body .credential-badge,
.work-item-section .work-item-body .internal-badge {
  margin-block: 0.75rem;
}

.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.credential-badge:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.internal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  cursor: default;
  user-select: none;
}


.about .work-item-body strong {
  display: block;
  opacity: 0.55;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 1024px) {
  .about .work-item-body strong {
    font-size: 1.125rem;
  }
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  background-color: #000000;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-inline: 1.875rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    padding-inline: 3.75rem;
  }
}

.footer-copy {
  font-size: 0.9375rem;
  opacity: 0.55;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  opacity: 0.55;
  line-height: 1;
}

.footer-location svg {
  flex-shrink: 0;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.footer-nav a svg {
  width: 18px;
  height: 18px;
}

.footer-nav a:hover {
  opacity: 1;
}

/* =========================================
   UTILITIES
   ========================================= */

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

.text-regular { font-weight: 400; }
.text-medium  { font-weight: 500; }
.text-bold    { font-weight: 700; }

.text-white   { color: #ffffff; }

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 1.875rem; /* 30px */
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 3.75rem; /* 60px */
  }
}
