/* ==========================================================================
   Nori v2
   Loaded after style.css on every page (each <body> has the .v2 class).
   ========================================================================== */
.v2 {
  --ink-60: rgba(0, 0, 0, 0.6);
  --rule: rgba(0, 0, 0, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header: cyan dot after the logo. On hover the dot slides behind the
   letters to the front while the word slides right, so they swap places. */
.v2 .site-logo {
  --logo-dot: 0.36em;
  --logo-gap: 0.18em;
  --logo-ease: cubic-bezier(0.65, 0, 0.35, 1);
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding-right: calc(var(--logo-dot) + var(--logo-gap));
}

.v2 .site-logo-text {
  display: inline-block;
  transition: transform 0.5s var(--logo-ease);
}

.v2 .site-logo::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: calc(100% - var(--logo-dot));
  bottom: 0.3em;
  width: var(--logo-dot);
  height: var(--logo-dot);
  border-radius: 50%;
  background: var(--color-accent);
  transition: left 0.5s var(--logo-ease);
}

@media (hover: hover) {
  .v2 .site-logo:hover .site-logo-text { transform: translateX(calc(var(--logo-dot) + var(--logo-gap))); }
  .v2 .site-logo:hover::after { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .v2 .site-logo-text,
  .v2 .site-logo::after { transition: none; }
}

/* Over the cyan title panel the dot switches to black */
.v2-accent-top .site-logo::after { background: var(--color-black); }

/* Nav: one pill that sits behind the current page's link and slides to
   whichever link is hovered or focused. The link it sits behind flips
   to light text (dark text on the light header used over case study heroes). */
.v2 .nav-menu {
  --nav-pill-bg: var(--color-black);
  --nav-pill-fg: var(--color-white);
  position: relative;
  gap: 2px;
  margin-right: -0.8em; /* keep the last link's text on the page gutter */
}

.v2 .header--light .nav-menu {
  --nav-pill-bg: var(--color-white);
  --nav-pill-fg: var(--color-black);
}

.v2 .nav-link {
  position: relative;
  z-index: 1;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  background-image: none;
  transition: color 0.35s ease;
}

.v2 .nav-link.is-pilled { color: var(--nav-pill-fg); }

.nav-pill {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 999px;
  background: var(--nav-pill-bg);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1),
    width 0.55s cubic-bezier(0.34, 1.4, 0.64, 1),
    opacity 0.3s ease;
}

.nav-pill.is-visible { opacity: 1; }
.nav-pill.no-transition { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .nav-pill { transition: opacity 0.2s ease; }
}

/* Pill button with a cyan fill that rises on hover */
.pill-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.pill-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--color-accent);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}

.pill-btn:hover { color: var(--color-black); }
.pill-btn:hover::before { transform: translateY(0); }
.pill-btn .pill-btn-arrow { transition: transform 0.4s var(--ease-out); }
.pill-btn:hover .pill-btn-arrow { transform: translateX(4px); }

.pill-btn--light { background: var(--color-white); color: var(--color-black); }
.pill-btn--light::before { background: var(--color-accent); }

/* ==========================================================================
   Home: hero
   ========================================================================== */
.v2-hero {
  padding-top: calc(var(--header-height) + clamp(40px, 7vw, 120px));
  padding-bottom: clamp(24px, 3vw, 48px);
}

.v2-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: clamp(28px, 3.4vw, 56px);
}

.v2-hello {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.6vw, 28px);
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.5vw, 22px);
}

.v2-hello img {
  flex-shrink: 0;
  width: clamp(80px, 9vw, 160px);
  height: clamp(80px, 9vw, 160px);
  border-radius: 50%;
}

.v2-where {
  font-size: 15px;
  color: var(--ink-60);
}

.v2-hero-title {
  font-size: clamp(42px, 8.3vw, 150px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 13.5em;
  text-wrap: balance;
}

.v2-roles { margin-top: clamp(8px, 1.5vw, 24px); }
.v2-roles .marquee text { font-size: var(--fs-marquee); }

/* Intro (assets/js/intro.js, home only). The hidden state only applies once
   the script has added .intro-pending, so without JS the hero shows as normal. */
.intro-word { display: inline-block; }

.intro-pending .site-header,
.intro-pending .v2-where,
.intro-pending .v2-hero-title,
.intro-pending main > :not(.v2-hero),
.intro-pending footer { opacity: 0; }

.intro-pending .v2-hello img { opacity: 0; transform: scale(0); }
.intro-pending .v2-hello-text { clip-path: inset(0 100% 0 0); }

@media (prefers-reduced-motion: reduce) {
  .intro-pending .v2-hello { opacity: 0; }
  .intro-pending .v2-hello img { opacity: 1; transform: none; }
  .intro-pending .v2-hello-text { clip-path: none; }
}

/* ==========================================================================
   Home: What I do (cyan accordion)
   ========================================================================== */
.v2-explain {
  margin-top: clamp(40px, 5vw, 80px);
  background: var(--color-accent);
  padding: clamp(64px, 10vw, 160px) 0 calc(var(--corner-h) + clamp(48px, 6vw, 96px));
}

.v2-explain-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 120px);
}

.v2-explain h2 {
  position: sticky;
  top: 120px;
  align-self: start;
  font-size: clamp(32px, 3.6vw, 60px);
  line-height: 1.05;
}

.v2-roles-list details { border-top: 1.5px solid var(--color-black); }
.v2-roles-list details:last-child { border-bottom: 1.5px solid var(--color-black); }

.v2-roles-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(18px, 1.8vw, 28px) 0;
  cursor: pointer;
}

.v2-roles-list summary::-webkit-details-marker { display: none; }

.v2-roles-list summary h3 {
  font-size: clamp(24px, 2.8vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.v2-roles-list summary small {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.v2-plus {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--color-black);
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.5s var(--ease-out);
}

.v2-plus::before,
.v2-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  translate: -50% -50%;
}

.v2-plus::after {
  rotate: 90deg;
  transition: rotate 0.4s var(--ease-out);
}

.v2-roles-list details[open] .v2-plus { background: var(--color-black); color: var(--color-accent); }
.v2-roles-list details[open] .v2-plus::after { rotate: 0deg; }
.v2-roles-list summary:hover .v2-plus { transform: rotate(90deg); }

.v2-roles-list details p {
  max-width: 60ch;
  padding: 0 64px clamp(20px, 2vw, 32px) 0;
}

/* ==========================================================================
   Home: Design & Development
   ========================================================================== */
.v2-work { padding-bottom: calc(var(--corner-h) + clamp(64px, 8vw, 140px)); }

.v2-big-marquee { padding-top: clamp(40px, 4vw, 72px); }

.v2-big-marquee .marquee text,
.v2-music .marquee text {
  font-size: clamp(64px, 9.2vw, 160px);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.v2-work-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
  margin-top: clamp(32px, 4vw, 64px);
}

.v2-work-intro h2 {
  font-size: clamp(28px, 3.2vw, 54px);
  line-height: 1.08;
}

.v2-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1.5px solid var(--color-black);
}

.v2-stats div { padding-top: 14px; }

.v2-stats b {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.2vw, 52px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.v2-stats span {
  font-size: 14px;
  color: var(--ink-60);
}

/* Featured project panel */
.v2-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin-top: clamp(48px, 6vw, 112px);
  overflow: hidden;
  border-radius: clamp(24px, 3vw, 48px);
  background: var(--color-black);
  color: var(--color-white);
  text-decoration: none;
}

.v2-feature-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 72px);
}

.v2-feature-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6ff00;
}

.v2-feature-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6ff00;
}

.v2-feature h3 {
  font-size: clamp(32px, 4vw, 68px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

.v2-feature p {
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.72);
}

.v2-feature-facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.4vw, 40px);
  font-family: var(--font-heading);
}

.v2-feature-facts b {
  display: block;
  font-size: clamp(24px, 2.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.v2-feature-facts span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.v2-feature .pill-btn { align-self: flex-start; }

.v2-feature-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.v2-feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.v2-feature:hover .v2-feature-media img { transform: scale(1.04); }
.v2-feature:hover .pill-btn { color: var(--color-black); }
.v2-feature:hover .pill-btn::before { transform: translateY(0); }

/* Selected work index */
.v2-selected { margin-top: clamp(64px, 8vw, 140px); }

.v2-selected-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: clamp(20px, 2.4vw, 40px);
}

.v2-selected-head h2 { font-size: clamp(28px, 3.2vw, 54px); }
.v2-selected-head p { font-size: 15px; color: var(--ink-60); }

.v2-selected-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 80px);
}

/* ==========================================================================
   Index rows (home "Selected work" + portfolio Index view)
   ========================================================================== */
.index-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(18px, 2vw, 28px) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.index-row:first-child { border-top: 1px solid var(--rule); }
.index-row[hidden] { display: none; }

.index-row::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--color-black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.index-row:hover::before { transform: scaleX(1); }

.index-row-title {
  font-size: clamp(26px, 3.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  transition: transform 0.5s var(--ease-out);
}

.index-row:hover .index-row-title { transform: translateX(clamp(8px, 1.2vw, 20px)); }

.index-row-meta,
.index-row-year {
  font-family: var(--font-heading);
  font-size: 14px;
  white-space: nowrap;
}

.index-row-meta { color: var(--ink-60); }

.index-row-year {
  min-width: 6.5em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.index-row-thumb { display: none; }

@media (hover: none), (max-width: 760px) {
  .index-row {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 4px 16px;
  }
  .index-row-thumb {
    display: block;
    grid-row: span 2;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
  }
  .index-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .index-row-meta { display: none; }
  .index-row-year { grid-column: 2; min-width: 0; text-align: left; }
}

/* Cursor-following preview for index rows */
.index-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: clamp(240px, 24vw, 380px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.3s ease, transform 0.5s var(--ease-out);
}

.index-preview.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.index-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.index-preview img.active { opacity: 1; }

@media (hover: none) { .index-preview { display: none; } }

/* ==========================================================================
   Home: music
   ========================================================================== */
.v2-music {
  position: relative;
  z-index: 3;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-black);
  padding: calc(var(--corner-h) + clamp(40px, 5vw, 96px)) 0 calc(var(--corner-h) + clamp(56px, 7vw, 120px));
}

.v2-music::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
}

.v2-music > * { position: relative; z-index: 1; }
.v2-music > .music-video-bg { position: absolute; z-index: 0; }
.v2-music .blend-difference { color: var(--color-white); }

.v2-music-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: clamp(32px, 5vw, 96px);
}

.v2-music-row h2 {
  max-width: 18em;
  font-size: clamp(26px, 3vw, 50px);
  line-height: 1.08;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.v2-footer {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--corner-h));
  padding: calc(var(--corner-h) + 64px) 0 40px;
  background: var(--color-black);
  color: var(--color-white);
}

.v2-footer-eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
}

.v2-footer-email {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(30px, 6.4vw, 104px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.v2-footer-email::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.06em;
  height: 0.05em;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease-out);
}

.v2-footer-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.v2-footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.v2-footer-row nav { display: flex; gap: 24px; }
.v2-footer-row a { text-decoration: none; transition: color 0.2s ease; }
.v2-footer-row a:hover { color: var(--color-accent); }

/* ==========================================================================
   Design & Development
   ========================================================================== */
.v2-portfolio-top {
  background: var(--color-accent);
  padding: calc(var(--header-height) + clamp(40px, 6vw, 104px)) 0 calc(var(--corner-h) + clamp(32px, 4vw, 64px));
}

.v2-portfolio-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

/* Page titles with a count: the count sits beside the H1, not inside it,
   so the heading text stays "Products" rather than "Products2". The wrapper
   carries the heading type so the count's em sizing matches the old <sup>. */
.page-title {
  font-family: var(--font-heading);
  letter-spacing: -0.05em;
}

.page-title h1 {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
  margin: 0;
}

.v2-portfolio-top .page-title {
  font-size: clamp(48px, 8.4vw, 150px);
  font-weight: 700;
  line-height: 0.92;
}

.v2-portfolio-top .page-title-count {
  position: relative;
  top: 0.35em;
  margin-left: 0.15em;
  font-size: 0.26em;
  font-weight: 500;
  letter-spacing: -0.02em;
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}

.v2-portfolio-top p {
  max-width: 30ch;
  font-size: 16px;
}

.v2 .portfolio-panel { padding-bottom: calc(var(--corner-h) + 64px); }

.v2-portfolio-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: clamp(28px, 3.6vw, 56px);
  padding-bottom: 28px;
}

.v2 .portfolio-filter { padding: 0; }
.v2 .filter-btn.is-active span { color: var(--color-accent); opacity: 1; }

.view-toggle {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}

.view-toggle button {
  position: relative;
  z-index: 1;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.view-toggle button[aria-pressed="true"] { color: var(--color-white); }

.view-toggle-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: 999px;
  background: var(--color-black);
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out);
}

.v2 .projects-grid[hidden],
.v2 .portfolio-index[hidden] { display: none; }

.portfolio-index { padding-top: 8px; }

/* Squares: type at rest, the image wipes up from the bottom on hover */
.v2 .project-square { cursor: none; }

.v2 .project-square-media {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.75s var(--ease-out);
}

.v2 .project-square-img {
  opacity: 1;
  transform: scale(1.15);
  transition: transform 1.2s var(--ease-out);
}

.v2 .project-square-overlay { opacity: 1; }

.v2 .project-square:hover .project-square-media { clip-path: inset(0 0 0 0); }
.v2 .project-square:hover .project-square-img { transform: scale(1); }

.v2 .project-square-action { display: none; }

.project-square-kind {
  margin-top: 2px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
  transition: color 0.35s ease;
}

.v2 .project-square:hover .project-square-kind { color: rgba(255, 255, 255, 0.75); }

.v2 .project-square.is-entering { animation: v2-enter 0.7s var(--ease-out) both; }

@keyframes v2-enter {
  from { opacity: 0; transform: translateY(24px); }
}

/* "View" bubble that follows the cursor over the grid */
.grid-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.45s var(--ease-out);
}

.grid-cursor.is-visible { transform: translate(-50%, -50%) scale(1); }

@media (hover: none) {
  .v2 .project-square { cursor: pointer; }
  .v2 .project-square-media { clip-path: none; }
  .v2 .project-square-img { transform: none; }
  .v2 .project-square-kind { color: rgba(255, 255, 255, 0.8); }
  .grid-cursor { display: none; }
}

@media (max-width: 640px) {
  .v2 .project-square-media { clip-path: none; }
  .v2 .project-square-img { transform: none; }
  .v2 .project-square-kind { color: rgba(255, 255, 255, 0.8); }
}

/* ==========================================================================
   Responsive + motion
   ========================================================================== */
@media (max-width: 860px) {
  .v2-explain-grid,
  .v2-work-intro,
  .v2-feature,
  .v2-portfolio-top-grid { grid-template-columns: 1fr; }
  .v2-explain h2 { position: static; }
  .v2-feature-media { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .v2-roles-list details p { padding-right: 0; }
}

@media (max-width: 480px) {
  .v2-stats { grid-template-columns: 1fr 1fr; row-gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .v2 .project-square-media { clip-path: none; transition: none; }
  .v2 .project-square-img { transform: none; }
  .v2 .project-square.is-entering { animation: none; }
}

/* ==========================================================================
   Other pages (About, Products, case studies, 404)
   ========================================================================== */

/* Existing square buttons become v2 pills with the cyan fill */
.v2 .btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  height: auto;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.3s ease;
}

.v2 .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--color-accent);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}

.v2 .btn:hover { opacity: 1; color: var(--color-black); }
.v2 .btn:hover::before { transform: translateY(0); }
.v2 .btn--outline { box-shadow: inset 0 0 0 1.5px currentColor; }

@media (max-width: 767px) {
  .v2 .btn { width: auto; }
}

/* About + Products: cyan title panel, like Design & Development */
.v2-accent-top .about-hero,
.v2-accent-top .product-hero--index { background: var(--color-accent); }

.v2-accent-top .about-hero h1,
.v2-accent-top .product-hero--index .page-title {
  font-size: clamp(48px, 8.4vw, 150px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.v2-accent-top .product-hero--index .page-title-count {
  position: relative;
  top: 0.35em;
  margin-left: 0.15em;
  font-size: 0.26em;
  font-weight: 500;
  letter-spacing: -0.02em;
  vertical-align: top;
}

.v2-accent-top .about-avatar { box-shadow: 0 0 0 6px var(--color-black); }
.v2-accent-top .about-hero .btn--outline { color: var(--color-black); }

/* The cyan fill vanishes on the cyan panel, so these buttons invert instead */
.v2-accent-top .about-hero .btn::before { background: var(--color-white); }
.v2-accent-top .about-hero .btn--outline::before { background: var(--color-black); }
.v2-accent-top .about-hero .btn--outline:hover { color: var(--color-white); }

/* Product cards lift on hover */
.v2 .product-card { transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.v2 .product-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.3); }

/* 404 */
.v2-not-found-top {
  position: relative;
  z-index: 2;
  background: var(--color-accent);
  padding: calc(var(--header-height) + clamp(40px, 6vw, 104px)) 0 clamp(32px, 4vw, 64px);
  overflow: hidden;
}

.v2-not-found-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28ch);
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(16px, 2vw, 32px);
}

.v2-not-found-head h1 {
  font-size: clamp(96px, 20vw, 360px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.v2-not-found-head p { margin-bottom: 24px; }
.v2-not-found-top .marquee text { font-size: var(--fs-marquee); }

.v2-not-found-recent {
  padding-top: clamp(56px, 7vw, 112px);
  padding-bottom: calc(var(--corner-h) + clamp(56px, 7vw, 112px));
}

.v2-not-found-recent h2 {
  margin-bottom: clamp(20px, 2.4vw, 40px);
  font-size: clamp(28px, 3.2vw, 54px);
}

@media (max-width: 760px) {
  .v2-not-found-head { grid-template-columns: 1fr; }
}
