/* ============================================
   INEFFABLE STUDIO — SHARED STYLES
   ============================================ */

:root {
  --green: #123524;
  --green-deep: #0B2218;
  --green-tint: #1F4D38;
  --green-light: #2C6748;
  --cream: #F4EFE6;
  --cream-muted: #B5AE9E;
  --cream-low: #6E6A60;
  --divider: rgba(244, 239, 230, 0.08);
  --divider-strong: rgba(244, 239, 230, 0.16);
}

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

html {
  scroll-behavior: smooth;
  background: var(--green);
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--green);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-wrap: break-word;
  cursor: none;
  position: relative;
  width: 100%;
  max-width: 100vw;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* CURSOR */
.cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--cream); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transition: width 0.2s ease, height 0.2s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor.hover { width: 48px; height: 48px; }

@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor { display: none; }
}

/* LAYOUT */
.layout { display: grid; grid-template-columns: 38% 62%; min-height: 100vh; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

/* SIDEBAR */
.sidebar {
  position: sticky; top: 0; height: 100vh;
  padding: 48px 56px;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--divider);
}
@media (max-width: 900px) {
  .sidebar {
    position: relative; height: auto;
    padding: 32px 24px 48px;
    border-right: none;
    border-bottom: 1px solid var(--divider);
  }
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 500; font-size: 22px;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 4px;
}
.logo sup {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 0;
  opacity: 0.6; vertical-align: super;
}
.logo a { color: inherit; text-decoration: none; }

/* NAV */
.nav {
  display: flex; gap: 18px;
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--divider);
}
.nav a {
  font-family: 'Space Mono', monospace;
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream-muted); text-decoration: none;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--cream); }
.nav a.active { color: var(--cream); }
.nav a.active::after { content: ' •'; color: var(--cream-low); }

.sidebar-content {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 64px 0;
}

.intro {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.18; letter-spacing: -0.02em;
  color: var(--cream); max-width: 480px;
  margin-bottom: 24px;
}
.intro em { font-style: italic; font-weight: 400; }

.intro-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 300; font-size: 15px;
  color: var(--cream-muted);
  max-width: 380px; line-height: 1.55;
  margin-bottom: 40px;
}

.cta {
  display: inline-flex; align-items: center;
  gap: 14px; padding: 10px 14px 10px 10px;
  background: var(--cream); color: var(--green-deep);
  text-decoration: none; border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 14px;
  width: fit-content;
  transition: transform 0.3s ease, background 0.3s ease;
}
.cta:hover { transform: translateX(4px); background: #fff; }
.cta-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background-image: url('https://picsum.photos/seed/anntz-avatar/80/80?grayscale');
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
.cta-arrow { font-family: 'Space Mono', monospace; font-size: 12px; }

/* STATUS */
.status-bar {
  margin-top: auto; padding-top: 32px;
  border-top: 1px solid var(--divider);
  display: flex; flex-direction: column; gap: 12px;
}
.status-row {
  display: grid; grid-template-columns: 100px 1fr;
  align-items: baseline; gap: 16px;
  font-family: 'Space Mono', monospace;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em;
}
.status-label { color: var(--cream-low); }
.status-value { color: var(--cream); display: flex; align-items: center; gap: 8px; }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cream);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.socials {
  display: flex; gap: 16px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--divider);
}
.socials a {
  font-family: 'Space Mono', monospace;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream-muted); text-decoration: none;
  transition: color 0.2s ease;
}
.socials a:hover { color: var(--cream); }

/* MAIN + SECTIONS */
.main { position: relative; }
.section {
  padding: 120px 80px; position: relative;
  border-bottom: 1px solid var(--divider);
}
@media (max-width: 900px) { .section { padding: 80px 24px; } }

.section-num {
  position: absolute; top: 120px; left: 0;
  transform: translateX(-50%) rotate(-90deg);
  transform-origin: center;
  font-family: 'Space Mono', monospace;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cream-low); white-space: nowrap;
}
@media (max-width: 900px) {
  .section-num {
    position: static; transform: none;
    margin-bottom: 24px; display: block;
  }
}

/* MARQUEE */
.marquee {
  overflow: hidden; padding: 32px 0;
  background: var(--green-deep);
  border-block: 1px solid var(--divider);
}
.marquee-track {
  display: flex; gap: 80px;
  animation: marquee 30s linear infinite;
  white-space: nowrap; width: max-content;
}
.marquee-item {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 300;
  font-size: clamp(36px, 5vw, 72px);
  color: var(--cream); letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 80px;
}
.marquee-item::after {
  content: '✦'; font-size: 24px;
  color: var(--cream-low); font-style: normal;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* HEADLINES + COPY */
.h-display {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: clamp(48px, 8vw, 124px);
  line-height: 0.95; letter-spacing: -0.04em;
  color: var(--cream); max-width: 920px;
}
.h-display em { font-style: italic; font-weight: 400; }

.h-section {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05; letter-spacing: -0.03em;
  max-width: 780px; margin-bottom: 32px;
}

.h-medium {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2; letter-spacing: -0.02em;
  max-width: 720px; margin-bottom: 32px;
}

.h-small {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em;
}

.prose {
  max-width: 620px;
  display: flex; flex-direction: column; gap: 24px;
}
.prose p {
  font-family: 'Inter', sans-serif;
  font-weight: 300; font-size: 18px;
  line-height: 1.6; color: var(--cream);
}
.prose p strong { font-weight: 500; color: var(--cream); }
.prose p em { font-style: italic; }

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cream-low); margin-bottom: 24px;
}

.italic-pull {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.3; letter-spacing: -0.02em;
  color: var(--cream); max-width: 720px;
}

/* TAG PILLS */
.tag-pill {
  font-family: 'Space Mono', monospace;
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 7px 14px;
  border: 1px solid var(--divider-strong);
  border-radius: 999px;
  color: var(--cream); background: transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.tag-pill:hover { background: var(--cream); color: var(--green-deep); }

/* FILTER (CSS-only) */
#filter-toggle { position: absolute; left: -9999px; }
.work-filter {
  margin-bottom: 48px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 24px 0;
}
.work-filter__top {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.work-filter__label {
  font-family: 'Space Mono', monospace;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream-low); margin-right: 12px;
}
.tag-pill--toggle { margin-left: auto; }
.tag-pill--toggle::after { content: attr(data-more); }
body:has(#filter-toggle:checked) .tag-pill--toggle::after { content: attr(data-less); }
.work-filter__bottom {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.5s ease, opacity 0.3s ease, margin-top 0.4s ease;
}
body:has(#filter-toggle:checked) .work-filter__bottom {
  max-height: 600px; opacity: 1; margin-top: 24px;
}
.work-filter__row {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 24px; align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--divider);
}
.work-filter__row-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--cream-low);
}
.work-filter__tags { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) {
  .work-filter__row { grid-template-columns: 1fr; gap: 12px; }
}

/* WORK GRID + CARDS */
.work-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.work-card {
  position: relative; aspect-ratio: 16 / 10;
  border-radius: 4px; overflow: hidden;
  background: var(--green-tint);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
  padding: 32px; cursor: none;
  transition: transform 0.4s ease;
  text-decoration: none; color: var(--cream);
}
.work-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 34, 24, 0.2) 0%, transparent 30%, rgba(11, 34, 24, 0.85) 100%);
  transition: opacity 0.4s ease;
}
.work-card:hover { transform: translateY(-4px); }
.work-card:hover::before {
  background: linear-gradient(180deg, rgba(11, 34, 24, 0.3) 0%, rgba(11, 34, 24, 0.5) 30%, rgba(11, 34, 24, 0.95) 100%);
}
.work-card-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 12px;
}
.work-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.work-tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border: 1px solid rgba(244, 239, 230, 0.4);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(11, 34, 24, 0.4);
  backdrop-filter: blur(8px);
}
.work-card-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--cream);
}
.work-card-meta {
  font-family: 'Space Mono', monospace;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--cream-muted);
}
.work-card.featured { aspect-ratio: 16 / 9; }
.work-card-cta {
  background: var(--green-deep) !important;
  background-image: none !important;
  border: 1px solid var(--cream);
  aspect-ratio: 16 / 6;
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px;
}
.work-card-cta::before, .work-card-cta::after { display: none; }
.work-card-cta-text {
  font-family: 'Fraunces', serif;
  font-weight: 300; font-style: italic;
  font-size: clamp(24px, 2.4vw, 36px);
  color: var(--cream);
}
.work-card-cta-arrow {
  font-family: 'Space Mono', monospace;
  font-size: 14px; color: var(--cream); letter-spacing: 0.08em;
}

/* CLOSE / OPTIONS */
.close-options { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
.close-option {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--divider);
  text-decoration: none; color: var(--cream);
  transition: padding-left 0.3s ease, color 0.3s ease;
}
.close-option:hover { padding-left: 16px; }
.close-option-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream-low); margin-bottom: 8px;
}
.close-option-value {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.02em;
}
.close-option-arrow { font-family: 'Space Mono', monospace; font-size: 14px; }

/* FOOTER */
.footer {
  padding: 80px 80px 48px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap;
  border-top: 1px solid var(--divider);
}
@media (max-width: 900px) {
  .footer { padding: 48px 24px 32px; flex-direction: column; align-items: flex-start; }
}
.footer-mark {
  font-family: 'Fraunces', serif;
  font-weight: 500; font-size: 18px;
  letter-spacing: -0.02em;
}
.footer-meta {
  font-family: 'Space Mono', monospace;
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream-low); line-height: 1.8;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* FADE-TRAIL — Aston Martin Fernando Alonso quote pattern.
   Wrap the trailing portion of a headline to fade muted. */
.fade-trail {
  color: var(--cream-muted);
  transition: color 0.6s ease;
}
.fade-trail:hover { color: var(--cream); }

/* CTA GROUP + SECONDARY — Aston Martin dual-CTA pattern. */
.cta-group {
  display: flex; gap: 10px;
  flex-wrap: wrap; align-items: center;
}
.cta-secondary {
  display: inline-flex; align-items: center;
  gap: 10px; padding: 10px 16px;
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--cream);
  text-decoration: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 14px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.cta-secondary:hover {
  background: var(--cream); color: var(--green-deep);
  transform: translateX(4px);
}

/* ==================== MOBILE TIGHT (≤600px) ==================== */
/* Universal mobile safety pass for work, about, contact, brand-guidelines,
   work-adelante pages. Tames hero typography minimums + tightens padding
   so content never overflows the viewport on phones (375–414px). */
@media (max-width: 600px) {
  /* Shared display + section headlines */
  .h-display { font-size: clamp(34px, 10vw, 56px); }
  .h-section { font-size: clamp(24px, 7vw, 36px); }

  /* Intro/sub copy */
  .intro      { font-size: clamp(22px, 6.5vw, 28px); }
  .intro-sub  { font-size: 14px; }

  /* Sections — tighter horizontal padding */
  .section { padding: 64px 20px; }

  /* Sidebar */
  .sidebar { padding: 28px 20px 40px; }
  .logo    { font-size: 18px; }

  /* Footer */
  .footer { padding: 40px 20px 28px; }

  /* Marquee */
  .marquee-item { font-size: clamp(28px, 8vw, 44px); gap: 48px; }
  .marquee-track { gap: 48px; }

  /* Universal safety: never let a child push wider than viewport */
  .section, .sidebar, .footer, .marquee, .main, .layout {
    max-width: 100%;
  }

  /* Filter rows collapse cleanly */
  .work-filter__row { grid-template-columns: 1fr; gap: 12px; }
}
