/* Cedilla Studio — homepage (v2 design, Oct 2026; old version at /archive/homepage-v1/).
   Loaded after /styles.css (needed for the shared navbar), so everything here
   is scoped under body.v2 to override the old homepage rules. */

@font-face { font-family: 'cs-5uper';   src: url('/assets/fonts/cs-5uper.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'cs-defiant'; src: url('/assets/fonts/cs-defiant.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'cs-endless'; src: url('/assets/fonts/cs-endless.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'cs-glare';   src: url('/assets/fonts/cs-glare.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'cs-noire';   src: url('/assets/fonts/cs-noire-variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

body.v2 {
  --blue: #5164F6;
  --pink: #FC5FAD;
  --cyan: #21D4FD;
  --ink: #000;
  --paper: #fff;
  --muted: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.14);
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  height: auto;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Open Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.v2 main { display: block; }
.v2 a { color: inherit; }
.v2 .serif { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; }

/* ---------- Pills (replaces <a><button>) ---------- */
.v2 .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), transform .3s var(--ease);
}
.v2 .pill:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.v2 .pill--glow {
  background: linear-gradient(135deg, var(--pink), var(--blue), var(--blue), var(--cyan));
  background-size: 300% 300%;
  border-color: transparent;
}
.v2 .pill--glow:hover {
  animation: v2-gradient 5s ease infinite;
  box-shadow: 0 0 18px rgba(81, 100, 246, .6), 0 0 40px rgba(81, 100, 246, .35);
}
.v2 .pill--light { background: #fff; color: #000; border-color: #fff; }
.v2 .pill--light:hover { color: #fff; }
@keyframes v2-gradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.v2 .link-arrow { display: inline-flex; gap: 8px; font-size: 14px; text-decoration: none; color: var(--muted); transition: color .3s; }
.v2 .link-arrow span { transition: transform .3s var(--ease); }
.v2 .link-arrow:hover { color: #fff; }
.v2 .link-arrow:hover span { transform: translateX(4px); }

/* ---------- Hero ---------- */
.v2 .hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.v2 .hero::after {
  /* soft blue bloom behind the logo */
  content: "";
  position: absolute;
  inset: 25% 20%;
  background: radial-gradient(closest-side, rgba(81, 100, 246, .18), transparent);
  z-index: -2;
  pointer-events: none;
}
.v2 .glyph-layer { position: absolute; inset: 0; pointer-events: none; }
.v2 .glyph-layer--back  { z-index: -1; }
.v2 .glyph-layer--front { z-index: 3; }
.v2 .glyph { position: absolute; height: auto; will-change: transform; user-select: none; }

.v2 .hero-centre {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--gutter);
}
.v2 .hero-logo {
  width: min(560px, 82vw);
  height: auto;
  opacity: 0;
  animation: v2-rise 1.2s var(--ease) .1s forwards;
}
.v2 .hero-title {
  margin: 28px 0 0;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
  opacity: 0;
  animation: v2-rise 1.2s var(--ease) .35s forwards;
}
.v2 .hero-title .serif { font-size: 1.12em; }
.v2 .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  opacity: 0;
  animation: v2-rise 1.2s var(--ease) .55s forwards;
}
@keyframes v2-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.v2 .hero-meta {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 4;
}
.v2 .hero-meta--top { top: 96px; }
.v2 .hero-meta--bottom { bottom: 28px; }
.v2 .hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  z-index: 4;
  animation: v2-bob 1.6s ease-in-out infinite alternate;
}
.v2 .hero-scroll img { display: block; height: 52px; width: auto; opacity: .8; }
@keyframes v2-bob { to { transform: translateX(-50%) translateY(-10px); } }

/* ---------- Marquee ---------- */
.v2 .marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
}
.v2 .marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  font-size: clamp(26px, 4vw, 48px);
  white-space: nowrap;
  animation: v2-marquee 40s linear infinite;
}
.v2 .marquee-track > span:not(.serif):not(.star) { font-family: Arial, sans-serif; letter-spacing: -.01em; }
.v2 .marquee .star { color: var(--blue); font-size: .6em; text-shadow: 0 0 12px var(--blue); }
@keyframes v2-marquee { to { transform: translateX(calc(-50% - 16px)); } }

/* ---------- Sections + index rows ---------- */
.v2 .section { padding: clamp(80px, 12vw, 160px) var(--gutter) 0; }
.v2 .index-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.v2 .index-line { flex: 1; height: 1px; background: var(--line); }

/* Stacked title — the original "creative / ASSETS" offset pairing */
.v2 .stack-title { display: flex; flex-direction: column; align-items: center; line-height: .95; }
.v2 .stack-title .serif { font-size: clamp(48px, 8vw, 112px); transform: translateX(-12%); }
.v2 .stack-title .caps {
  font-family: Arial, sans-serif;
  font-size: clamp(48px, 8vw, 112px);
  letter-spacing: -.02em;
  transform: translateX(10%);
}
.v2 .stack-title--left { align-items: flex-start; }
.v2 .stack-title--left .serif { transform: none; }
.v2 .stack-title--left .caps { transform: none; padding-left: .9em; }

.v2 .split-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.v2 .split-copy p { margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .8); max-width: 44ch; }

/* ---------- Identity ---------- */
.v2 .hello { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.v2 .hello-left { display: flex; flex-direction: column; align-items: flex-start; }
.v2 .hello-title { margin: 0 0 24px; font-size: clamp(88px, 13vw, 190px); line-height: .9; color: #fff; }
.v2 .hello-gif { width: min(280px, 70%); height: auto; border-radius: 14px; filter: grayscale(.2); }
.v2 .hello-text { margin: 0 0 40px; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.35; color: #fff; }
.v2 .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.v2 .stats dt { font-family: Arial, sans-serif; font-size: clamp(28px, 3vw, 40px); color: #fff; }
.v2 .stats dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Typefaces / type tester ---------- */
.v2 #typefaces .stack-title { margin-bottom: 56px; }
.v2 .tester {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, .03);
  position: sticky;
  top: 70px;
  z-index: 5;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.v2 .tester-label { font-family: 'Playfair Display', serif; font-style: italic; font-size: 18px; white-space: nowrap; }
.v2 .tester-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  font: inherit;
  font-size: 17px;
}
.v2 .tester-input::placeholder { color: var(--muted); }
.v2 .tester-size { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.v2 .tester-size input { accent-color: var(--blue); width: 120px; }

.v2 .specimens { list-style: none; margin: 0; padding: 0; }
.v2 .specimen { border-top: 1px solid var(--line); }
.v2 .specimen:last-child { border-bottom: 1px solid var(--line); }
.v2 .specimen a {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  text-decoration: none;
  position: relative;
}
.v2 .specimen-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.v2 .specimen-name { font-size: 18px; color: #fff; }
.v2 .specimen-sample {
  font-size: var(--size, 96px);
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .5s var(--ease), text-shadow .5s var(--ease), transform .5s var(--ease);
}
.v2 .specimen-go { font-size: 13px; color: var(--muted); opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s var(--ease); white-space: nowrap; }
.v2 .specimen a:hover .specimen-sample { color: var(--blue); text-shadow: 0 0 24px rgba(81, 100, 246, .55); transform: translateX(8px); }
.v2 .specimen a:hover .specimen-go { opacity: 1; transform: none; color: #fff; }

/* ---------- Cards (assets) ---------- */
.v2 .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); }
.v2 .card { text-decoration: none; display: block; }
.v2 .card-img, .v2 .work-img, .v2 .post-img {
  overflow: hidden;
  border-radius: 14px;
  background: #111;
  transition: box-shadow .6s var(--ease);
}
.v2 .card-img img, .v2 .work-img img, .v2 .post-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease), filter .6s var(--ease);
}
.v2 .card-img { aspect-ratio: 1; }
.v2 .card:hover .card-img { box-shadow: 0 0 0 1px var(--blue), 0 20px 60px -20px rgba(81, 100, 246, .7); }
.v2 .card:hover img, .v2 .work:hover img, .v2 .post:hover img { transform: scale(1.05); }
.v2 .card-caption, .v2 .work figcaption { margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.v2 .card-caption .serif, .v2 .work figcaption .serif { font-size: 1.15em; color: #fff; }

/* ---------- Presets ---------- */
.v2 .presets {
  position: relative;
  margin-top: clamp(100px, 14vw, 180px);
  min-height: clamp(560px, 80vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.v2 .presets-img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  z-index: -2;
  will-change: transform;
}
.v2 .presets::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #000 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.25) 60%, #000 100%),
              linear-gradient(90deg, rgba(0,0,0,.7) 0%, transparent 60%);
  z-index: -1;
}
.v2 .index-row--overlay { position: absolute; top: 0; left: var(--gutter); right: var(--gutter); }
.v2 .presets-content { padding: 0 var(--gutter) clamp(56px, 8vw, 110px); max-width: 640px; }
.v2 .presets-content p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.85); margin: 24px 0 28px; }

/* ---------- Custom works ---------- */
.v2 .works { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); align-items: start; }
.v2 .work { margin: 0; }
.v2 .work:nth-child(even) { margin-top: 64px; }
.v2 .work-img { aspect-ratio: 4 / 5; }
.v2 .work img { filter: grayscale(1) contrast(1.05); }
.v2 .work:hover img { filter: none; }

/* ---------- Journal ---------- */
.v2 .posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px) clamp(12px, 2vw, 24px); }
.v2 .post { text-decoration: none; display: block; }
.v2 .post-img { aspect-ratio: 1200 / 766; }
.v2 .post-meta { display: flex; justify-content: space-between; margin-top: 16px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.v2 .post-title { margin: 8px 0 0; font-family: 'Open Sans', sans-serif; font-weight: 500; font-size: 20px; line-height: 1.3; color: #fff; transition: color .3s; }
.v2 .post:hover .post-title { color: var(--blue); }

/* ---------- Freebies ---------- */
.v2 .freebies {
  margin: clamp(100px, 14vw, 180px) var(--gutter) clamp(60px, 8vw, 100px);
  padding: clamp(56px, 9vw, 120px) var(--gutter);
  border-radius: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
}
.v2 .freebies::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(closest-side, rgba(81,100,246,.55), transparent 70%),
              radial-gradient(closest-side at 30% 70%, rgba(252,95,173,.25), transparent 70%),
              radial-gradient(closest-side at 75% 30%, rgba(33,212,253,.2), transparent 70%);
  z-index: -1;
  animation: v2-drift 16s ease-in-out infinite alternate;
}
@keyframes v2-drift { to { transform: rotate(25deg) scale(1.1); } }
.v2 .freebies-kicker { margin: 0 0 16px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.v2 .freebies-title { margin: 0; font-family: Arial, sans-serif; font-weight: 400; font-size: clamp(44px, 7vw, 96px); line-height: 1; color: #fff; }
.v2 .freebies-text { max-width: 44ch; margin: 20px auto 32px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.85); }

/* ---------- Scroll reveal ---------- */
.v2.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
.v2.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .v2 .split-head, .v2 .hello { grid-template-columns: 1fr; }
  .v2 .split-head { gap: 28px; }
  .v2 .cards, .v2 .works { grid-template-columns: repeat(2, 1fr); }
  .v2 .work:nth-child(even) { margin-top: 40px; }
  .v2 .posts { grid-template-columns: repeat(2, 1fr); }
  .v2 .specimen a { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .v2 .specimen-meta { flex-direction: row; gap: 12px; align-items: baseline; }
  .v2 .specimen-go { display: none; }
}
@media (max-width: 600px) {
  .v2 .hero-meta--top { top: 78px; font-size: 10px; }
  .v2 .hero-meta--top span:nth-child(2) { display: none; }
  .v2 .hero-meta--bottom { display: none; }
  .v2 .hero-scroll { bottom: 32px; }
  .v2 .posts { grid-template-columns: 1fr; }
  .v2 .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .v2 .stats dd { font-size: 11px; }
  .v2 .tester { flex-wrap: wrap; border-radius: 20px; gap: 10px 16px; top: 60px; }
  .v2 .tester-size { width: 100%; }
  .v2 .tester-size input { flex: 1; }
  .v2 .hello-gif { width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .v2 *, .v2 *::before, .v2 *::after { animation: none !important; transition: none !important; }
  .v2 .hero-logo, .v2 .hero-title, .v2 .hero-ctas, .v2.js .reveal { opacity: 1; transform: none; }
}
