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

:root {
  --color-bg: #f1f1ee;
  --color-bg-card: #eaeae3;
  --color-bg-alt: #e8e8e0;
  --color-dark: #252525;
  --color-ink: #000000;
  --color-ink-70: rgba(0, 0, 0, 0.6);
  --color-ink-40: rgba(0, 0, 0, 0.4);
  --color-border: rgba(0, 0, 0, 0.1);
  --color-accent: #0099ff;

  /* Case study placeholder gradients */
  --accent-1: #c8b89a;
  --accent-2: #9ab5c8;
  --accent-3: #a8c4a2;
  --accent-4: #c8a0a0;

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-accent: 'Manrope', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 15px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.10);
  --transition: 0.2s ease;

  --nav-h: 64px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  background-repeat: repeat;
}

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

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

.container {
  margin: 0 auto;
  padding: 0 clamp(20px, 2vw, 80px);
}


/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 2vw, 80px);
  background: transparent;
}

/* Subtle gradient + blur that dissolves into the page */
.nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom,
    rgba(241, 241, 238, 0.85) 0%,
    rgba(241, 241, 238, 0.4) 40%,
    rgba(241, 241, 238, 0.1) 70%,
    transparent 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom,
    black 0%,
    rgba(0,0,0,0.8) 25%,
    rgba(0,0,0,0.4) 55%,
    rgba(0,0,0,0.1) 80%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom,
    black 0%,
    rgba(0,0,0,0.8) 25%,
    rgba(0,0,0,0.4) 55%,
    rgba(0,0,0,0.1) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
}

.nav.scrolled::before {
  background: linear-gradient(to bottom,
    rgba(241, 241, 238, 0.95) 0%,
    rgba(241, 241, 238, 0.5) 40%,
    rgba(241, 241, 238, 0.15) 70%,
    transparent 100%
  );
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-family: var(--font-accent);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink-70);
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--color-ink);
}

.nav__cta {
  color: var(--color-bg-card) !important;
  background: var(--color-ink);
  padding: 7px 18px;
  border-radius: 100px;
  font-weight: 500 !important;
  transition: background var(--transition), color var(--transition) !important;
}

.nav__cta:hover {
  background: var(--color-accent) !important;
  color: #fff !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-ink);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 24px clamp(20px, 2vw, 80px);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav__mobile-menu a {
  font-family: var(--font-accent);
  font-size: 1.125rem;
  color: var(--color-ink-70);
}


/* ============================================
   HERO ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

@keyframes blobMorph {
  0%, 100% { border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%; }
  33%       { border-radius: 40% 60% 54% 46% / 44% 60% 40% 56%; }
  66%       { border-radius: 55% 45% 38% 62% / 52% 36% 64% 48%; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 80px) clamp(20px, 2vw, 80px) 100px;
  margin: 0 auto;
  min-height: 78svh;
  position: relative;
  overflow: hidden;
}

/* Warm radial glow behind photo area */
.hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(200, 184, 154, 0.28) 0%, transparent 68%);
  pointer-events: none;
  border-radius: 50%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  position: relative;
  text-align: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero__headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Staggered entrance animations */
.hero__currently {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-ink-70);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.05s;
}

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

.hero__currently i {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.4;
}

.hero__headline {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.2s;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-align: center;
}

.hero__tagline {
  font-family: var(--font-accent);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  color: var(--color-ink-70);
  line-height: 1.5;
  max-width: 900px;
  text-align: center;
}

.hero__tagline em {
  font-style: normal;
  color: var(--color-ink);
  font-weight: 500;
}

.hero__skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.38s;
}

.hero__skills span {
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.88);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.65);
  padding: 7px 14px 7px 10px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__skills span i {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.6;
}

.hero__photo {
  order: -1;
  flex-shrink: 0;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.05s;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero__photo-img {
  width: 140px;
  height: 140px;
  border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
  animation: fadeUp 0.8s ease forwards, blobMorph 8s ease-in-out infinite;
  animation-delay: 0.05s, 1s;
  object-fit: cover;
  object-position: center 65%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  display: none;
}

.hero__photo-img.loaded {
  display: block;
}

.hero__photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
  animation: blobMorph 8s ease-in-out infinite;
  animation-delay: 1s;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__photo-placeholder svg {
  width: 112px;
}

/* Progressive blur at bottom of hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);
  mask-image: linear-gradient(to top, black 0%, transparent 100%);
  backdrop-filter: blur(12px);
}


/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-dark);
}

.section__header {
  margin-bottom: 52px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.section__subtitle {
  font-family: var(--font-accent);
  font-size: 0.9375rem;
  color: var(--color-ink-70);
}


/* ============================================
   DARK CTA BAND
   ============================================ */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
}

.cta-band__label {
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-band__label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ecf6c;
  box-shadow: 0 0 0 3px rgba(62, 207, 108, 0.2);
}

.cta-band__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
}

.cta-band__btn {
  font-family: var(--font-accent);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-dark);
  background: #ffffff;
  padding: 12px 28px;
  border-radius: 100px;
  transition: background var(--transition), color var(--transition);
}

.cta-band__btn:hover {
  background: var(--color-accent);
  color: #ffffff;
}


/* ============================================
   WORK / CASE STUDIES
   ============================================ */

/* Magazine-style asymmetric grid: row 1 = 60/40, row 2 = 40/60 */
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.case-study {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: transparent;
  cursor: pointer;
  padding: 10px 10px 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.case-study:hover {
  background: var(--color-bg-card);
  transform: translateY(-3px);
}

/* ---- Preview (image) ---- */
.case-study__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 16px;
}

.case-study__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: transparent;
}

.case-study:hover .case-study__img {
  transform: scale(1.04);
}

/* Placeholder — shown when no image */
.case-study__preview-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.case-study__preview-placeholder--1 { background: linear-gradient(160deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%); }
.case-study__preview-placeholder--2 { background: linear-gradient(160deg, #0d1b2a 0%, #1b2a3b 60%, #243447 100%); }
.case-study__preview-placeholder--3 { background: linear-gradient(160deg, #0d2416 0%, #1a3a28 60%, #1e4530 100%); }
.case-study__preview-placeholder--4 { background: linear-gradient(160deg, #1f0a0a 0%, #321212 60%, #401818 100%); }

/* ---- Card body ---- */
.case-study__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px 20px;
  flex: 1;
}

.case-study__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.case-study__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-ink-70);
  line-height: 1.65;
}

.case-study__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.case-study__company {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-ink-40);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.case-study__year {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  color: var(--color-ink-40);
}


/* ============================================
   WRITING
   ============================================ */
.writing__list {
  display: flex;
  flex-direction: column;
}

.writing__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
  transition: opacity var(--transition);
}

.writing__item:first-child {
  border-top: 1px solid var(--color-border);
}

.writing__item:hover {
  opacity: 0.65;
}

.writing__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.writing__tag {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-ink-40);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.writing__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.writing__excerpt {
  font-size: 0.9375rem;
  color: var(--color-ink-70);
  line-height: 1.6;
}

.writing__date {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  font-family: var(--font-accent);
  font-size: 0.875rem;
  color: var(--color-ink-40);
  padding-top: 4px;
}

.writing__arrow {
  color: var(--color-ink-70);
  transition: transform var(--transition);
}

.writing__item:hover .writing__arrow {
  transform: translateX(4px);
}


/* ============================================
   ABOUT
   ============================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: start;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__text .section__title {
  margin-bottom: 8px;
}

.about__text p {
  font-size: 1rem;
  color: var(--color-ink-70);
  line-height: 1.8;
  max-width: 560px;
}

.about__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.about__links a {
  font-family: var(--font-accent);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-accent);
  transition: opacity var(--transition);
}

.about__links a:hover {
  opacity: 0.7;
}

.about__photo {
  flex-shrink: 0;
}

.about__photo-placeholder {
  width: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.about__photo-placeholder svg {
  width: 100%;
}

/* ============================================
   ABOUT — Rethought
   ============================================ */
.about-rethink {
  background: var(--color-bg-card);
  overflow: hidden;
}

.about-rethink__inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 660px;
}

.about-rethink__photo {
  position: relative;
  background: #dedad4;
  overflow: hidden;
}

.about-rethink__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about-rethink__photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.about-rethink__photo-placeholder svg {
  width: 100%;
}

.about-rethink__photo-img ~ .about-rethink__photo-placeholder {
  display: none;
}

.about-rethink__content {
  padding: 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-rethink__label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-40);
  margin-bottom: 20px;
}

.about-rethink__headline {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--color-ink);
  margin-bottom: 36px;
}

.about-rethink__bio p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-ink-70);
  line-height: 1.75;
  margin-bottom: 16px;
}

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

.about-rethink__links {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.about-rethink__links a {
  font-family: var(--font-accent);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.about-rethink__links a:hover {
  opacity: 0.45;
}

@media (max-width: 900px) {
  .about-rethink__inner {
    grid-template-columns: 1fr;
  }

  .about-rethink__photo {
    height: 360px;
    position: relative;
  }

  .about-rethink__content {
    padding: 56px 32px;
  }

  .about-rethink__headline {
    font-size: 1.75rem;
  }
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

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

.footer p {
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  color: var(--color-ink-40);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-ink-70);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-accent);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav {
    padding: 0 20px;
  }

  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .nav__mobile-menu {
    display: block;
    padding: 24px 20px;
  }

  .hero {
    padding: calc(var(--nav-h) + 48px) 20px 56px;
    min-height: auto;
  }


  .hero__content {
    gap: 24px;
  }

  .hero__text {
    align-items: flex-start;
    text-align: left;
  }

  .hero__name,
  .hero__tagline {
    text-align: left;
  }

  .hero__skills {
    justify-content: flex-start;
  }

  .hero__photo-img,
  .hero__photo-placeholder {
    width: 120px;
    height: 120px;
  }

  .hero__photo-placeholder svg {
    width: 90px;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 72px 0;
  }

  .work__grid {
    grid-template-columns: 1fr;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__photo {
    order: -1;
  }

  .about__photo-placeholder {
    width: 160px;
  }

  .writing__item {
    flex-direction: column;
    gap: 12px;
  }

  .writing__date {
    flex-direction: row-reverse;
    justify-content: flex-end;
  }

  .footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cta-band__heading {
    font-size: 2.25rem;
  }
}

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