/* =========================================================
   aminone.com — playful creative portfolio
   Shared stylesheet
   ========================================================= */

:root {
  /* Color system */
  --bg: #f7f3ec;
  --bg-deep: #ede6d6;
  --ink: #14110f;
  --ink-soft: #4a4239;
  --accent: #6a4bff;       /* electric violet — the new brand color */
  --accent-2: #ffd23f;     /* sunshine */
  --accent-3: #ff3d8a;     /* hot magenta */
  --accent-4: #18a87b;     /* leaf */
  --line: rgba(20, 17, 15, 0.12);

  /* Type */
  --font-display: "Fraunces", "Times New Roman", ui-serif, Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --maxw: 1280px;
  --pad-x: clamp(20px, 5vw, 64px);
  --radius: 18px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110f;
    --bg-deep: #0d0b0a;
    --ink: #f7f3ec;
    --ink-soft: #c9bfb1;
    --line: rgba(247, 243, 236, 0.14);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
  font-style: italic;
}

.display em {
  font-style: normal;
  color: var(--accent);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.lead {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { padding: clamp(80px, 12vh, 160px) 0; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  transition: opacity 0.25s var(--ease);
}

.logo:hover { opacity: 0.7; }

.logo img {
  height: 64px;
  width: auto;
  display: block;
}

@media (max-width: 720px) {
  .logo, .logo img { height: 48px; }
}

@media (prefers-color-scheme: dark) {
  /* Logo is black-on-transparent — invert in dark mode */
  .logo img { filter: invert(1); }
}

.logo .dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.nav-links a {
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s var(--ease);
  display: inline-block;
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-toggle:hover {
  background: var(--ink);
  color: var(--bg);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    font-size: 32px;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 28px var(--pad-x);
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Full-bleed video reel (with overlaid manifesto) ---------- */

.reel {
  width: 100%;
  background: #000;
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video iframe — fills the area, overscaled to bleed past 16:9 letterboxing */
.reel .frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;       /* 16:9 of viewport height */
  min-width: 100%;
  min-height: 56.25vw;   /* 16:9 of viewport width */
  height: 100%;
  transform: translate(-50%, -50%) scale(1.05);
  border: 0;
  z-index: 0;
  pointer-events: none;
}

/* Dark scrim for text legibility */
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.35) 30%,
      rgba(0,0,0,0.35) 70%,
      rgba(0,0,0,0.7) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Manifesto overlay (no black background — sits transparently over video) */
.reel .manifesto-overlay {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px var(--pad-x);
  text-align: center;
  color: #fff;
}

.reel .manifesto-overlay p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(32px, 6vw, 80px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.reel .manifesto-overlay .accent { color: var(--accent); font-style: normal; }

.reel .manifesto-overlay .signoff {
  display: block;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}

/* Caption pinned bottom-left */
.reel .caption {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: clamp(20px, 4vw, 48px);
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.reel .caption .eyebrow { color: rgba(255,255,255,0.7); }

.reel .caption .name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: -0.02em;
}

/* Floating stars decoration (carry-over from manifesto vibe) */
.reel .star-left,
.reel .star-right {
  position: absolute;
  color: var(--accent);
  font-size: clamp(32px, 5vw, 64px);
  opacity: 0.55;
  z-index: 2;
  pointer-events: none;
  animation: float-star 8s ease-in-out infinite;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.reel .star-left  { top: 12%; left: 8%; }
.reel .star-right { bottom: 16%; right: 8%; animation-delay: -3s; }

@media (max-width: 720px) {
  .reel .star-left  { top: 24px; left: 16px; }
  .reel .star-right { bottom: 80px; right: 16px; }
  .reel { min-height: 80vh; }
}

@media (prefers-reduced-motion: reduce) {
  .reel .frame { display: none; }
  .reel { background: var(--ink); }
}

/* Intro strip (sits below the reel: tagline + CTAs + meta) */
.intro {
  padding: clamp(48px, 8vh, 96px) var(--pad-x);
  border-bottom: 1px solid var(--line);
}

.intro-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: end;
}

@media (max-width: 900px) {
  .intro-inner { grid-template-columns: 1fr; gap: 32px; }
}

.intro h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.intro h2 em { font-style: normal; color: var(--accent); }

.intro .right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.intro .buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.intro .meta-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.intro .meta-rows strong {
  color: var(--ink);
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .intro .meta-rows { grid-template-columns: 1fr; gap: 14px; }
}

/* Press list (text only, no images) */
.press-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
@media (max-width: 720px) {
  .press-list { grid-template-columns: 1fr; }
}

.press-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s var(--ease);
}

.press-list a:hover { padding-left: 8px; }

.press-list .pub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em;
}

.press-list .arrow {
  color: var(--ink-soft);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.press-list a:hover .arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.press-list .desc {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- Hero background video ---------- */

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

.hero-bg::after {
  /* legibility scrim: darker top + bottom, lets text breathe */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--bg) 78%, transparent) 0%,
      color-mix(in oklab, var(--bg) 30%, transparent) 35%,
      color-mix(in oklab, var(--bg) 30%, transparent) 65%,
      color-mix(in oklab, var(--bg) 95%, transparent) 100%
    );
  pointer-events: none;
}

/* The Vimeo iframe inside fills the area, overscaled to bleed past 16:9 letterboxing */
.hero-bg .frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;       /* 16:9 of viewport height */
  min-width: 100%;
  min-height: 56.25vw;   /* 16:9 of viewport width */
  height: 100%;
  transform: translate(-50%, -50%) scale(1.15);
  border: 0;
  pointer-events: none;
}

/* When user prefers reduced motion, pause/blank the bg video */
@media (prefers-reduced-motion: reduce) {
  .hero-bg .frame { display: none; }
}

/* Make hero text + buttons sit comfortably above the bg */
.hero { position: relative; }
.hero > * { position: relative; }

/* Push content below bg video */
.hero .display, .hero .lead, .hero .eyebrow, .hero .hero-meta,
.hero > .reveal { position: relative; z-index: 1; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(80px, 18vh, 220px) 0 clamp(60px, 8vh, 120px);
  position: relative;
}

.hero h1 {
  margin-bottom: 28px;
}

.hero .lead {
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.hero-meta span strong {
  color: var(--ink);
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  margin-top: 4px;
}

/* Floating shapes */
.shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}

.shape.s1 { width: 320px; height: 320px; background: var(--accent);   top: 10%; right: -80px; animation-delay: 0s; }
.shape.s2 { width: 240px; height: 240px; background: var(--accent-3);  bottom: -40px; left: -60px; animation-delay: -3s; }
.shape.s3 { width: 180px; height: 180px; background: var(--accent-2);  top: 40%; left: 40%; animation-delay: -7s; opacity: 0.4; }

@keyframes float {
  0%, 100% { transform: translate(0,0) rotate(0); }
  50%      { transform: translate(40px, -30px) rotate(20deg); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn .arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Section header ---------- */

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(36px, 6vw, 72px);
  font-style: italic;
  font-weight: 500;
  max-width: 18ch;
}

.section-head h2 em {
  font-style: normal;
  color: var(--accent);
}

/* ---------- Project grid ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: block;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(20,17,15,0.25);
}

.card .thumb {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(40px, 6vw, 96px);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

.card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 60%);
  pointer-events: none;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.card:hover .thumb img {
  transform: scale(1.04);
}

/* When using an image, suppress the radial overlay text-thumb decoration */
.card .thumb.img::after { display: none; }

.card .meta {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 14px;
}

.card .meta .title { font-weight: 600; }
.card .meta .year  { color: var(--ink-soft); font-family: var(--font-mono); }

.card.large  { grid-column: span 7; }
.card.medium { grid-column: span 5; }
.card.small  { grid-column: span 4; }
.card.wide   { grid-column: span 8; }

@media (max-width: 900px) {
  .card.large, .card.medium, .card.small, .card.wide { grid-column: span 12; }
}

/* Thumb color palette */
.bg-tan      { background: linear-gradient(135deg, var(--accent), #ff8a5b); }
.bg-blue     { background: linear-gradient(135deg, var(--accent-3), #6f8aff); }
.bg-yellow   { background: linear-gradient(135deg, var(--accent-2), #ffe884); color: var(--ink); }
.bg-green    { background: linear-gradient(135deg, var(--accent-4), #4fd6a8); }
.bg-ink      { background: linear-gradient(135deg, var(--ink), #2c2622); }

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.marquee-track {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  margin: 0 24px;
}

.marquee-track .star {
  color: var(--accent);
  display: inline-block;
  transform: translateY(-4px);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---------- About / list rows ---------- */

.row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.row .label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 6px;
}

.row .body {
  font-size: 18px;
  line-height: 1.55;
}

.row .body p { margin: 0 0 12px 0; }
.row .body p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.field label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s var(--ease);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.contact-info a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  transition: padding 0.25s var(--ease);
}

.contact-info a:hover {
  padding-left: 8px;
}

.contact-info a .arrow {
  transition: transform 0.25s var(--ease);
  opacity: 0.5;
}

.contact-info a:hover .arrow {
  transform: translateX(4px);
  opacity: 1;
  color: var(--accent);
}

/* ---------- Footer ---------- */

.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-weight: 500;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer .big-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.footer .big-mark em {
  font-style: normal;
  color: var(--accent);
}

.copyright {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Visual project tile (image-led) ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -28px rgba(20,17,15,0.35);
}

.tile .img {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}

.tile .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}

.tile:hover .img img { transform: scale(1.04); }

/* Aspect ratios for variety */
.tile.r-43  .img { aspect-ratio: 4 / 3; }
.tile.r-169 .img { aspect-ratio: 16 / 9; }
.tile.r-11  .img { aspect-ratio: 1 / 1; }
.tile.r-32  .img { aspect-ratio: 3 / 2; }
.tile.r-23  .img { aspect-ratio: 2 / 3; }

/* Spans */
.tile.span-12 { grid-column: span 12; }
.tile.span-8  { grid-column: span 8; }
.tile.span-7  { grid-column: span 7; }
.tile.span-6  { grid-column: span 6; }
.tile.span-5  { grid-column: span 5; }
.tile.span-4  { grid-column: span 4; }
.tile.span-3  { grid-column: span 3; }

@media (max-width: 900px) {
  .tile.span-12, .tile.span-8, .tile.span-7,
  .tile.span-6, .tile.span-5, .tile.span-4 { grid-column: span 12; }
  .tile.span-3  { grid-column: span 6; }
}
@media (max-width: 540px) {
  .tile.span-3  { grid-column: span 12; }
}

.tile .meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px 16px 16px;
  align-items: baseline;
}

.tile .meta .title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.2;
}

.tile .meta .year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tile .meta .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  grid-column: 1 / -1;
}

.tile .meta .view {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.tile:hover .meta .view {
  opacity: 1;
  transform: none;
}

/* Real links inside meta should always be visible (video tiles need a clickable Vimeo link) */
.tile .meta a.view {
  opacity: 1;
  transform: none;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.tile .meta a.view:hover {
  text-decoration: underline;
}

/* Disable lift transform while a video is playing inside the tile */
.tile:has(.img.video.playing) {
  transform: none !important;
  box-shadow: none !important;
}

/* Press tile (smaller, for press strip) */
.press-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .press-strip { grid-template-columns: 1fr; }
}

.press-tile {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  transition: transform 0.3s var(--ease);
}
.press-tile:hover { transform: translateY(-3px); }
.press-tile .img { aspect-ratio: 16/9; overflow: hidden; }
.press-tile .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.press-tile:hover .img img { transform: scale(1.05); }
.press-tile .meta {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 13px;
}
.press-tile .meta .name { font-weight: 600; }
.press-tile .meta .arrow { color: var(--ink-soft); }

/* Hero collage on home */
.hero-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 64px;
}

.hero-collage .cell {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-deep);
}

.hero-collage .cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
}

.hero-collage .cell:hover img { transform: scale(1.05); }

.hero-collage .cell.tall    { grid-row: span 2; aspect-ratio: 3 / 5; }
.hero-collage .cell.normal  { aspect-ratio: 1 / 1; }
.hero-collage .cell.wide    { grid-column: span 2; aspect-ratio: 16 / 9; }

@media (max-width: 720px) {
  .hero-collage { grid-template-columns: repeat(2, 1fr); }
  .hero-collage .cell.tall { grid-row: auto; aspect-ratio: 1 / 1; }
  .hero-collage .cell.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
}

/* ---------- Video facade (poster → iframe) ---------- */

.tile .img.video {
  cursor: pointer;
  position: relative;
}

.tile .img.video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 65%, rgba(0,0,0,0.18) 100%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.tile:hover .img.video::before { opacity: 1; }

.tile .img.video .play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(40px, 4vw, 52px);
  height: clamp(40px, 4vw, 52px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: none;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.tile:hover .img.video .play {
  opacity: 1;
  background: rgba(255, 255, 255, 0.9);
  color: #14110f;
  border-color: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) scale(1.06);
}

.tile .img.video .play svg {
  width: 38%;
  height: 38%;
  margin-left: 10%;  /* offset the optical center of the triangle */
  fill: currentColor;
}

.tile .img.video .duration {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile .img.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 3;
  background: #000;
}

/* When playing, hide the poster + play button */
.tile .img.video.playing > img,
.tile .img.video.playing > .play,
.tile .img.video.playing::before,
.tile .img.video.playing > .duration {
  display: none;
}

/* ---------- Project list (work page) ---------- */

.project-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.project-item {
  display: grid;
  grid-template-columns: 80px 1.4fr 1fr 1fr auto;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease);
  position: relative;
}

.project-item:hover {
  padding-left: 16px;
}

.project-item .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

.project-item .title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.project-item .meta-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.project-item .year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

.project-item .view {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.project-item .view .arrow {
  transition: transform 0.25s var(--ease);
}

.project-item:hover .view {
  color: var(--accent);
}

.project-item:hover .view .arrow {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .project-item {
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
  }
  .project-item .num    { grid-column: 1 / 2; grid-row: 1; }
  .project-item .year   { grid-column: 2 / 3; grid-row: 1; text-align: right; }
  .project-item .title  { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; }
  .project-item .meta-tag { grid-column: 1 / -1; grid-row: 3; }
  .project-item .view   { grid-column: 1 / -1; grid-row: 4; margin-top: 6px; }
}

/* Category divider with description */
.cat-divider {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 16px 40px;
  padding: 48px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.cat-divider h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.cat-divider .desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  max-width: 42ch;
}

.cat-divider .count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  align-self: end;
  justify-self: end;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .cat-divider {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cat-divider .count {
    justify-self: start;
  }
}

/* ---------- Category section wrappers ---------- */

/* Light/architectural — generous spacing, big cinematic feel */
.cat-section {
  padding: 0 0 clamp(36px, 5vh, 64px);
}

/* Dark variant for digital / NFT section — gives the lab/screen-lit feel.
   Uses HARDCODED dark color so it stays dark even when user's OS is in dark mode
   (where var(--ink) flips to a light cream). */
.cat-section.dark {
  background: #0c0a09;
  color: #f7f3ec;
  padding: clamp(36px, 5vh, 64px) 0;
  margin-top: clamp(36px, 5vh, 64px);
}

.cat-section.dark .cat-divider { border-color: rgba(247,243,236,0.12); }
.cat-section.dark .cat-divider h3 { color: #f7f3ec; }
.cat-section.dark .cat-divider .desc,
.cat-section.dark .cat-divider .count { color: rgba(247,243,236,0.65); }

.cat-section.dark .tile {
  background: rgba(247,243,236,0.04);
  border-color: rgba(247,243,236,0.12);
}
.cat-section.dark .tile .meta .title { color: #f7f3ec; }
.cat-section.dark .tile .meta .year,
.cat-section.dark .tile .meta .tag { color: rgba(247,243,236,0.6); }

/* Editorial / zigzag — fashion section gets a warmer tint */
.cat-section.editorial {
  background: var(--bg-deep);
  padding: clamp(36px, 5vh, 64px) 0;
}

.cat-section .container-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Featured spotlight tile — full-width hero of a section */
.tile.spotlight {
  grid-column: 1 / -1;
  position: relative;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.tile.spotlight .img,
.tile.spotlight .img.video {
  aspect-ratio: 21 / 9;
  border-radius: 0;
}

.tile.spotlight .meta {
  padding: 24px 0 0;
}

/* Square (1:1) ratio for museum-grid */
.tile.r-11 .img { aspect-ratio: 1 / 1; }

/* Portrait (2:3) ratio for digital art tiles (mimics 137×85cm frames) */
.tile.r-23 .img { aspect-ratio: 2 / 3; }

/* ---------- Placeholder tile (no image, colored block with title) ---------- */

.tile .img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

.tile .img.placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.25), transparent 65%);
  pointer-events: none;
}

.tile .img.placeholder .name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.tile .img.placeholder .sub {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

/* Color variants */
.bg-tan      { background: linear-gradient(135deg, var(--accent), #ff8a5b); }
.bg-blue     { background: linear-gradient(135deg, var(--accent-3), #6f8aff); }
.bg-yellow   { background: linear-gradient(135deg, var(--accent-2), #ffe884); color: var(--ink); }
.bg-green    { background: linear-gradient(135deg, var(--accent-4), #4fd6a8); }
.bg-ink      { background: linear-gradient(135deg, var(--ink), #2c2622); color: var(--bg); }
.bg-coral    { background: linear-gradient(135deg, #ff3d8a, #ffd23f); color: var(--ink); }
.bg-violet   { background: linear-gradient(135deg, #6a4bff, #ff3d8a); }
.bg-mint     { background: linear-gradient(135deg, #18a87b, #ffd23f); color: var(--ink); }

/* ---------- Magazine feature spread (Vogue Man) ---------- */

.feature-spread {
  padding: clamp(60px, 8vh, 100px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(40px, 6vh, 80px);
}

.feature-spread .credit {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.feature-spread .credit .pub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
}

.feature-spread .credit .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.feature-spread h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.feature-spread h3 em {
  font-style: normal;
  color: var(--accent);
}

.feature-spread .lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
  max-width: 38ch;
  color: var(--ink);
  margin: 0 0 32px;
}

/* Two-column hero: portrait + intro text */
.feature-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}

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

.feature-hero .portrait {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.feature-hero .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-hero .body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 50ch;
}

.feature-hero .body p strong { color: var(--ink); }

/* Pull quote block */
.feature-pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 48px 0;
  padding: 28px 32px;
  border-left: 4px solid var(--accent);
  max-width: 32ch;
}

.feature-pullquote .by {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 16px;
}

/* Photo grid below */
.feature-photos {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin: 40px 0;
}

@media (max-width: 720px) {
  .feature-photos { grid-template-columns: 1fr; }
}

.feature-photos figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-deep);
}

.feature-photos figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}

.feature-photos figcaption {
  display: none;
}

/* "Read full feature" footer */
.feature-spread .footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  margin-top: 16px;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.feature-spread .footer-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Manifesto banner ---------- */

.manifesto {
  background: #0c0a09;
  color: #f7f3ec;
  padding: clamp(80px, 14vh, 180px) var(--pad-x);
  position: relative;
  overflow: hidden;
}

/* When manifesto is the opening (no nav above), give it extra breathing room */
.manifesto.lead {
  padding-top: clamp(120px, 22vh, 240px);
  padding-bottom: clamp(120px, 22vh, 240px);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.manifesto.lead p {
  font-size: clamp(34px, 6.5vw, 88px);
}

.manifesto-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.manifesto p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.manifesto .accent { color: var(--accent); font-style: normal; }

.manifesto .signoff {
  display: block;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  opacity: 0.6;
}

/* Floating star decoration */
.manifesto::before,
.manifesto::after {
  content: "✦";
  position: absolute;
  color: var(--accent);
  font-size: clamp(40px, 6vw, 80px);
  opacity: 0.4;
  animation: float-star 8s ease-in-out infinite;
}

.manifesto::before { top: 12%; left: 8%; animation-delay: 0s; }
.manifesto::after  { bottom: 12%; right: 8%; animation-delay: -3s; }

@keyframes float-star {
  0%, 100% { transform: translate(0,0) rotate(0); }
  50%      { transform: translate(8px, -10px) rotate(15deg); }
}

@media (max-width: 720px) {
  .manifesto::before { top: 20px; left: 16px; }
  .manifesto::after  { bottom: 20px; right: 16px; }
}

/* ---------- Cursor blob ---------- */

.cursor-blob {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 100;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease);
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-blob { display: block; }
}

.cursor-blob.hover {
  width: 64px;
  height: 64px;
  background: var(--accent-2);
}
