/* =====================
   FONTS
   ===================== */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,300;1,9..144,400&display=swap');

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

html {
  scroll-behavior: smooth;
}

:root {
  --font-headline: 'Barlow', sans-serif;
  --font-body: 'Fraunces', serif;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: #ededed;
  color: #111;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

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

/* Inline body links */
.about-body a,
.case-body a {
  background-image: linear-gradient(rgba(253, 152, 1, 0.45), rgba(253, 152, 1, 0.45));
  background-size: 100% 40%;
  background-repeat: no-repeat;
  background-position: 0 90%;
  transition: background-size 0.2s ease;
}

.about-body a:hover,
.case-body a:hover {
  background-size: 100% 100%;
}

/* Let's talk CTA — underline only, no color conflict with accent intro */
.copy-email {
  background-image: none !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.copy-email:hover {
  opacity: 1;
}

/* =====================
   NAV
   ===================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: #e6e6e6;
  border-bottom: 1px solid #ddd;
}

h1, h2, h3, .nav-home, .hero-line, .case-title, .case-card__title {
  font-family: var(--font-headline);
}

.nav-home {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-char {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.85;
  letter-spacing: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

nav ul a {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.2s;
}

nav ul a:hover {
  opacity: 1;
}

/* =====================
   SECTIONS
   ===================== */
section {
  padding: 80px 48px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-label {
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 40px;
}

/* =====================
   PLACEHOLDERS
   ===================== */
.placeholder {
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.placeholder-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  text-align: center;
  padding: 16px;
}

/* =====================
   HERO
   ===================== */
#hero {
  height: 100svh;
  margin-top: calc(-1 * var(--nav-h, 69px));
  padding-top: var(--nav-h, 69px);
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
}

.hero-headline {
  position: relative;
  text-align: center;
  transition: height 0.3s ease;
}

.hero-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(52px, 11vw, 160px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  /* SAVED slide-up values:
     entry: transform translateY(32px) → 0, opacity 0→1, 0.6s ease
     exit:  transform translateY(-24px), opacity 0, 0.3s ease */
}

.hero-line.measuring {
  display: block !important;
  position: static !important;
  opacity: 0 !important;
  transform: none !important;
  pointer-events: none !important;
}

.hero-line.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-line.exit {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Typewriter cursor */
.hero-cursor {
  display: inline-block;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(52px, 11vw, 160px);
  line-height: 0.95;
  color: #fd9801;
  opacity: 1;
  margin-left: 2px;
  vertical-align: baseline;
}

.hero-cursor.blinking {
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}


.hero-tags {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-headline);
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 32px;
}

.hero-tag {
  cursor: default;
}

.hero-tag-label {
  opacity: 0.5;
  display: block;
  transition: opacity 0.2s ease, font-weight 0.2s ease;
}

.hero-tag-desc {
  display: none;
}

.hero-tag:hover .hero-tag-label,
.hero-tag.is-active .hero-tag-label {
  opacity: 1;
}

.hero-tag-body {
  max-width: 580px;
  height: 5em;
  margin: 28px auto 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(40px);
  transition: none;
  overflow: hidden;
}

.hero-tag-body.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
  visibility: visible;
}

/* =====================
   WORK GRID
   ===================== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 40px;
}

.case-card {
  display: block;
  cursor: pointer;
}

.case-card:hover .placeholder--case-thumb {
  background: #ccc;
}

.placeholder--case-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ddd;
  transition: background 0.2s;
  margin-bottom: 16px;
}

.case-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-card__title {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: -0.01em;
}

.case-card__tags {
  font-size: 13px;
  opacity: 0.5;
  letter-spacing: 0.02em;
}

/* =====================
   ABOUT
   ===================== */
.about-inner {
  max-width: 800px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.placeholder--about-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: 400px;
  background: #ddd;
}

img {
  border-radius: 16px;
}

.about-cols {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
  align-items: start;
}

.about-portrait {
  width: 100%;
  aspect-ratio: 4 / 4;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.about-intro {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  opacity: 1;
  margin-bottom: 24px;
}

.about-intro mark {
  background-color: rgba(253, 152, 1, 0.45);
  color: inherit;
  padding: 2px 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.about-body {
  font-size: 20px;
  line-height: 1.7;
  opacity: 0.7;
}

/* =====================
   CONTACT
   ===================== */
.placeholder--contact {
  width: 100%;
  height: 200px;
  background: #ddd;
}

/* =====================
   RESPONSIVE
   ===================== */
/* =====================
   CASE STUDY PAGES
   ===================== */
.case-study {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 48px 120px;
}

.case-header {
  margin-bottom: 48px;
}

.back-link {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 24px;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 1;
}

.case-title {
  font-size: 48px;
  font-weight: bold;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.case-meta {
  font-size: 14px;
  opacity: 0.5;
  letter-spacing: 0.02em;
}

.placeholder--case-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ddd;
  margin-bottom: 64px;
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.case-section-label {
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 16px;
}

.case-context p,
.case-challenge p,
.case-results p {
  font-size: 18px;
  line-height: 1.7;
}

.case-process {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.case-beat h3 {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.case-beat p {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.8;
}

.placeholder--case-inline {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ddd;
}

/* =====================
   FOOTER
   ===================== */
footer {
  padding: 32px 48px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  color: #111;
  opacity: 0.4;
  transition: opacity 0.2s, color 0.2s;
  font-size: 24px;
}

.footer-social a:hover {
  opacity: 1;
  color: #fd9801;
}

.copy-footer-msg {
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.copy-footer-msg.is-visible {
  opacity: 1;
}

.footer-copy {
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  nav {
    padding: 16px 24px;
  }

  section {
    padding: 60px 24px;
  }

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

  /* Case study pages */
  .case-study {
    padding: 40px 24px 80px;
  }

  .case-title {
    font-size: 32px;
  }

  .case-beat h3 {
    font-size: 18px;
  }

  .case-beat p,
  .case-context p,
  .case-challenge p,
  .case-results p {
    font-size: 16px;
  }

  /* About */
  .about-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-body {
    font-size: 18px;
  }

  /* Hero tags */
  .hero-tags {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 14px;
  }

  .hero-tag {
    text-align: center;
    width: 100%;
  }

  .hero-tag-label {
    cursor: pointer;
  }

  .hero-tag-desc {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.6;
    text-align: center;
    padding: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
  }

  .hero-tag.is-open .hero-tag-label {
    opacity: 1;
  }

  .hero-tag.is-open .hero-tag-desc {
    max-height: 160px;
    opacity: 1;
    padding-top: 10px;
  }

  .hero-tag-body {
    display: none;
  }

  .placeholder--about-image {
    max-width: 100%;
  }

  footer {
    padding: 32px 24px 48px;
  }

  #work {
    display: none;
  }


  /* Nav — collapse name label on very small screens */
  .nav-home {
    font-size: 16px;
  }
}
