/* ==========================================================================
   THE EDITORIAL CANVAS — Central Design System (v2, 2026)
   Dark editorial identity, elevated: signature accent, sharpened type,
   spatial rhythm, graphic detailing, and tactile motion.
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..600;1,9..144,400..600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- Strict Design Tokens & Variables --- */
:root {
  /* ---- Premium Simplified Palette ----
     Just three ideas: one near-black canvas (in tonal steps),
     one warm off-white ink, and one amber accent. Nothing else. */

  /* Ink-black canvas with subtle warmth, in clean tonal steps */
  --bg-canvas: #070809;
  --bg-surface: #0c0d0f;
  --bg-surface-elevated: #14161a;
  --bg-glass: rgba(12, 13, 15, 0.72);
  --bg-glass-hover: rgba(255, 255, 255, 0.03);

  /* Hairline borders — one hue, three strengths */
  --border-subtle: rgba(255, 255, 255, 0.055);
  --border-tactile: rgba(255, 255, 255, 0.11);
  --border-focus: rgba(255, 255, 255, 0.28);

  /* The single Signature Accent — warm amber (used sparingly, < 8% of surface) */
  --accent: #f3a952;
  --accent-bright: #ffc47a;
  --accent-dim: rgba(243, 169, 82, 0.13);
  --accent-line: rgba(243, 169, 82, 0.42);
  --accent-glow: rgba(243, 169, 82, 0.20);

  /* Typography - Elite Contrast Pairings */
  --font-headings: 'Fraunces', serif;
  --font-display: 'Fraunces', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-technical: 'Plus Jakarta Sans', sans-serif;

  /* Warm off-white ink, in three legible tiers */
  --text-primary: #f6f5f3;      /* warm high-contrast white */
  --text-secondary: #9b9aa0;    /* sophisticated medium gray */
  --text-muted: #58585e;        /* soft technical gray */
  --text-accent: #f6f5f3;

  /* Spatial Coordinates */
  --max-width: 1300px;
  --max-width-editorial: 960px;
  --radius-tactile: 16px;
  --radius-pill: 100px;

  /* Organic Spring Motion Transitions (Apple Cubic-Bezier) */
  --motion-spring: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --motion-snap: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  --motion-spring-slow: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Core Resets & Global Alignment --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  line-height: 1.625;
  overflow-x: hidden;
  position: relative;
}

/* Fine film grain over the whole canvas for tactile, "printed" depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Micro Selection & Clean Custom Scrollbars --- */
::selection {
  background-color: var(--accent-dim);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Custom cursor system — ambient glow + lagging ring + precise dot (desktop) */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 62%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
  mix-blend-mode: screen;
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-line);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10001;
  opacity: 0;
  transition: width .28s cubic-bezier(.16,1,.3,1), height .28s cubic-bezier(.16,1,.3,1),
              background-color .28s ease, border-color .28s ease, opacity .35s ease;
  will-change: transform;
}

#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10002;
  opacity: 0;
  transition: opacity .35s ease;
  will-change: transform;
}

#cursor-ring.is-hover {
  width: 60px;
  height: 60px;
  background: var(--accent-dim);
  border-color: var(--accent);
}

#cursor-ring.is-down {
  width: 24px;
  height: 24px;
}

html.cursor-custom,
html.cursor-custom a,
html.cursor-custom button,
html.cursor-custom .btn,
html.cursor-custom [onclick],
html.cursor-custom .dock-item,
html.cursor-custom .social-pill,
html.cursor-custom .showcase-preview-frame {
  cursor: none;
}

/* --- Layout Grid Elements --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.container-editorial {
  max-width: var(--max-width-editorial);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section {
  padding: 10rem 0;
  position: relative;
}

/* --- Typography Architecture --- */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(3.25rem, 8.2vw, 6rem);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

h3 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--motion-snap);
}

/* Monospaced coordinates label style (Technical Style) */
.coord-label {
  font-family: var(--font-technical);
  font-size: 0.725rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.coord-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--text-muted);
  border-radius: 50%;
  transition: var(--motion-snap);
}

.coord-label.active::before {
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* --- Tactile Button Systems --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--motion-spring);
  cursor: pointer;
  gap: 0.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.btn svg {
  transition: var(--motion-snap);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-canvas);
  border: 1px solid var(--text-primary);
  font-weight: 600;
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.06);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-tactile);
}

.btn-secondary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-line);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* --- Availability Status Pill --- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-tactile);
  background: var(--bg-surface);
  font-family: var(--font-technical);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  position: relative;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.5);
  animation: pulse-ring 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* --- Hero author avatar (human trust signal) --- */
.hero-intro-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin-bottom: 2.25rem;
}

.hero-intro-row .status-pill {
  margin-bottom: 0;
}

.hero-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex: none;
  border: 1px solid var(--border-tactile);
  box-shadow: 0 0 0 5px var(--bg-canvas), 0 0 0 6px var(--border-subtle), 0 14px 34px rgba(0, 0, 0, 0.5);
}

/* --- Contact portrait (tall feature, fills column) --- */
.contact-portrait {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: calc(var(--radius-tactile) - 2px);
  border: 1px solid var(--border-tactile);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* --- Dynamic Floating Bottom Dock Navigation --- */
.floating-dock-wrapper {
  position: fixed;
  bottom: 2.25rem;
  left: 0;
  width: 100%;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-dock-wrapper.dock-hidden {
  transform: translateY(120%) scale(0.9);
  opacity: 0;
}

.floating-dock {
  pointer-events: auto;
  background: rgba(14, 15, 17, 0.75);
  border: 1px solid var(--border-tactile);
  border-radius: var(--radius-pill);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: var(--motion-spring);
}

.floating-dock:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.dock-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--motion-snap);
  position: relative;
}

.dock-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.dock-item.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
  border: 1px solid var(--border-subtle);
}

#dock-resume {
  color: var(--accent);
}

#dock-resume:hover {
  color: var(--accent-bright);
  background: var(--accent-dim);
}

.dock-separator {
  width: 1px;
  height: 20px;
  background-color: var(--border-subtle);
  margin: 0 0.5rem;
}

.dock-brand {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
}

.dock-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Hero Section — Typographical Purity --- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 7rem;
  padding-bottom: 5rem;
  background:
    radial-gradient(58% 46% at 50% 34%, rgba(243, 169, 82, 0.06) 0%, transparent 66%),
    radial-gradient(55% 45% at 50% 95%, rgba(243, 169, 82, 0.05) 0%, transparent 70%);
}

/* Ambient accent glow + faint guide grid behind the hero */
.hero::before {
  content: '';
  position: absolute;
  top: -28%;
  right: -14%;
  width: 72vw;
  height: 72vw;
  max-width: 980px;
  max-height: 980px;
  background: radial-gradient(closest-side, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
  filter: blur(38px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
  animation: aurora-drift 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-4%, 3%) scale(1.09); }
  100% { transform: translate(3%, -2%) scale(0.95); }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Hero content sits above the decorative background glow */
.hero > .container {
  position: relative;
  z-index: 2;
}

.hero-editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.hero-headline {
  max-width: 1180px;
  margin: 0 auto;
}

.hero-headline h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.75rem, 5.6vw, 4.75rem);
  margin-bottom: 2rem;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-headline h1 span.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  /* Masked gradient text — warm amber sweeping into cool blue, clipped to the glyphs */
  background: linear-gradient(105deg, var(--accent) 0%, var(--accent-bright) 26%, #ffe0b0 42%, #cfe0ff 56%, #7cb0ff 72%, #4d84f0 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: accent-sweep 7s ease-in-out infinite;
}

@keyframes accent-sweep {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-headline h1 span.serif-italic { animation: none; }
}

.hero-description {
  max-width: 620px;
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 auto 3rem;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-actions-dock {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 3.5rem;
}

/* Founder-facing meta row — clean, consistent, premium */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border-subtle);
  max-width: 780px;
  margin: 0 auto;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hero-meta-key {
  font-family: var(--font-technical);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Trusted / Social Proof Marquee Strip --- */
.proof-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent), var(--bg-surface);
  padding: 2.5rem 0;
  overflow: hidden;
}

.proof-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
}

.proof-label {
  font-family: var(--font-technical);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.proof-label::before,
.proof-label::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent-line);
}

.proof-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.9rem;
}

.proof-logo {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  transition: var(--motion-snap);
  white-space: nowrap;
  position: relative;
}

.proof-logo:hover {
  color: var(--accent);
}

.proof-logo:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  transform: translateY(-50%);
}

/* --- Section headers --- */
.showcase-header {
  margin-bottom: 6rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.showcase-tagline {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 400px;
}

.showcases-stack {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

/* --- Uniform Work Card Grid — consistent container per project, minimal info --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-tactile);
  overflow: hidden;
  color: inherit;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.5s ease;
  will-change: transform;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-tactile);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.45);
}

.work-card-media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--bg-surface-elevated);
}

.work-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.work-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.6rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.work-card-cat {
  display: block;
  font-family: var(--font-technical);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.work-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.work-card-arrow {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-tactile);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--motion-snap);
}

.work-card:hover .work-card-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  transform: translate(3px, -3px);
}

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

/* Showcase Component Base */
.showcase-block {
  position: relative;
  width: 100%;
}

/* Alternating Block 1: Horizontal Editorial Canvas (Arthum) */
.showcase-type-horizontal {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.showcase-preview-frame {
  width: 100%;
  border-radius: var(--radius-tactile);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 55%),
    var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  overflow: hidden;
  position: relative;
  transition: var(--motion-spring-slow);
  cursor: pointer;
  /* Frame matches the covers' native ratio (~5:4) so nothing is cropped */
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-preview-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-tactile);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Corner tick marks for a precise, "drafted" graphic feel */
.showcase-preview-frame::after {
  content: '';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--border-tactile);
  border-right: 1px solid var(--border-tactile);
  z-index: 3;
  opacity: 0;
  transition: var(--motion-spring);
}

.showcase-preview-frame:hover::after {
  opacity: 1;
}

.showcase-image {
  width: 100%;
  height: 100%;
  /* contain guarantees the full cover is visible — never cut off */
  object-fit: contain;
  border-radius: calc(var(--radius-tactile) - 8px);
  transition: var(--motion-spring-slow);
}

.showcase-preview-frame:hover {
  border-color: var(--accent-line);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5), 0 0 0 1px var(--accent-dim);
  transform: translateY(-4px);
}

.showcase-preview-frame:hover .showcase-image {
  transform: scale(1.02);
}

/* Meta Content Alignment */
.showcase-narrative {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.narrative-title {
  font-size: 2.5rem;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: #fff;
}

.narrative-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

/* Performance metrics badge inside showcase */
.metric-row {
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  margin-bottom: 2.5rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.metric-number {
  font-family: var(--font-headings);
  font-size: 2.4rem;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
  transition: var(--motion-snap);
}

.showcase-block:hover .metric-number {
  color: var(--accent);
}

.metric-desc {
  font-family: var(--font-technical);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.narrative-action {
  font-family: var(--font-technical);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--motion-snap);
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.narrative-action svg {
  transition: var(--motion-snap);
}

.showcase-block:hover .narrative-action {
  color: var(--accent);
  border-bottom-color: var(--accent-line);
}

.showcase-block:hover .narrative-action svg {
  transform: translateX(6px);
}

/* Alternating Block 2: Asymmetric Vertical Columns (Aindra) */
.showcase-type-asymmetric {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

/* Alternating Block 3: Split Compact Columns (Mamata) */
.showcase-type-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Showcase Specific Tags */
.narrative-badge-stack {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.narrative-badge {
  font-family: var(--font-technical);
  font-size: 0.675rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: var(--motion-snap);
}

.showcase-block:hover .narrative-badge {
  border-color: var(--border-tactile);
}

/* small microcopy note under section headers */
.section-note {
  font-family: var(--font-technical);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 2.5rem;
  font-style: normal;
}

/* --- Design Manifest System (The Philosophy Canvas) --- */
.manifest-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.manifest-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 6rem;
}

.manifest-sticky-meta {
  position: sticky;
  top: 8rem;
  height: fit-content;
}

.manifest-intro-title {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.manifest-intro-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.manifest-list {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.manifest-card {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 3.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.manifest-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 2px;
  height: 1.4rem;
  background: var(--accent);
  border-radius: 2px;
}

.manifest-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.manifest-card-num {
  font-family: var(--font-technical);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.manifest-card-title {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

.manifest-card-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Contact & Communication Hub --- */
.contact-editorial-card {
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-dim) 0%, rgba(0,0,0,0) 45%),
    var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-tactile);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 3.5rem;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.contact-portrait-col {
  display: flex;
}

.contact-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
  position: relative;
  z-index: 2;
  padding: 1rem 1rem 1rem 0;
}

.contact-content-col h2 {
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.contact-content-col p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
}

.contact-content-col .contact-coord-table {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-content-col .social-pill-group {
  justify-content: flex-start;
}

.contact-editorial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.contact-headline h2 {
  font-size: 3.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.contact-headline p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 450px;
}

.contact-actions-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.contact-coord-table {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.coord-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.coord-row-label {
  font-family: var(--font-technical);
  font-size: 0.725rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.coord-row-value {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.coord-row-value a {
  transition: var(--motion-snap);
}

.coord-row-value a:hover {
  color: var(--accent);
}

.social-pill-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.social-pill {
  font-family: var(--font-technical);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  transition: var(--motion-snap);
}

.social-pill:hover {
  color: var(--bg-canvas);
  border-color: var(--accent);
  background: var(--accent);
}

.social-pill svg {
  width: 14px;
  height: 14px;
}

/* --- Clean Editorial Footer --- */
.footer-canvas {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-canvas-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-canvas-logo {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.footer-canvas-technical {
  font-family: var(--font-technical);
  font-size: 0.725rem;
  letter-spacing: 0.05em;
}

/* --- Case Study Editorial Details Pages --- */
.cs-canvas-header {
  padding: 12rem 0 6rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cs-canvas-back {
  font-family: var(--font-technical);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  margin-bottom: 3.5rem;
  transition: var(--motion-snap);
}

.cs-canvas-back:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

.cs-canvas-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: 2rem;
  line-height: 1.1;
  max-width: 1000px;
}

.cs-canvas-summary {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 780px;
  line-height: 1.7;
}

/* Technical Details Metadata Matrix */
.cs-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 5rem;
}

.cs-matrix-card {
  border-left: 1px solid var(--border-subtle);
  padding-left: 1.5rem;
}

.cs-matrix-label {
  font-family: var(--font-technical);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cs-matrix-value {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Media & Large Visual Anchors */
.cs-canvas-media {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-tactile);
  padding: 1rem;
  margin: 4rem 0;
}

.cs-canvas-img {
  width: 100%;
  border-radius: calc(var(--radius-tactile) - 6px);
  display: block;
}

/* Dynamic Case Study Content Sections
   Stacked layout: label on top, content full width beneath.
   Text keeps a readable measure; wide UI images span the full canvas. */
.cs-canvas-block {
  padding: 6rem 0;
  display: block;
  border-bottom: 1px solid var(--border-subtle);
}

.cs-canvas-block:last-of-type {
  border-bottom: none;
}

.cs-block-sticky-label {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
}

/* Keep prose at a comfortable reading measure... */
.cs-canvas-block .cs-block-desc,
.cs-canvas-block .cs-emphasis-box,
.cs-canvas-block .cs-steplist {
  max-width: 860px;
}

/* ...while media anchors break out to the full content width */
.cs-canvas-block .cs-canvas-media {
  width: 100%;
  max-width: 100%;
}

/* Let the section's own padding define the gap between sections — don't let
   a leading/trailing child margin stack on top of it and create dead space. */
.cs-canvas-block > div > *:first-child {
  margin-top: 0;
}
.cs-canvas-block > div > *:last-child {
  margin-bottom: 0;
}

/* Side-by-side row: prose or steps on the left, a square/portrait image on the
   right. Used instead of a full-width image-below when a tall image would
   otherwise dominate the column. Wide/landscape images keep the stacked layout. */
.cs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin: 4rem 0;
}

.cs-split > .cs-split-text > *:first-child { margin-top: 0; }
.cs-split > .cs-split-text > *:last-child { margin-bottom: 0; }

/* Inside a split the text column already constrains width, so let prose and
   step lists fill their column and drop their own outer margins. */
.cs-split .cs-block-desc,
.cs-split .cs-steplist {
  max-width: none;
  margin: 0;
}
.cs-split .cs-canvas-media {
  margin: 0;
}

@media (max-width: 900px) {
  .cs-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.cs-block-heading {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.cs-block-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cs-block-desc:last-child {
  margin-bottom: 0;
}

/* Custom Highlight Blocks inside Case Studies */
.cs-emphasis-box {
  background: var(--bg-surface);
  border-left: 2px solid var(--accent);
  padding: 2.5rem;
  border-radius: 0 var(--radius-tactile) var(--radius-tactile) 0;
  margin-bottom: 3.5rem;
}

.cs-emphasis-title {
  font-family: var(--font-technical);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.cs-emphasis-content {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Linear Processes step displays */
.cs-steplist {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin: 4rem 0;
}

.cs-step-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
}

.cs-step-indicator {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-tactile);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-technical);
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--bg-surface);
}

.cs-step-details h4 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.cs-step-details p {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Scroll Animations & Visual Reveals --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Flowing Wave Divider (ambient, seamless, edge-faded) --- */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 1rem 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.wave-track {
  display: flex;
  width: 200%;
  animation: wave-flow 16s linear infinite;
  will-change: transform;
}

.wave-track svg {
  width: 50%;
  flex: 0 0 50%;
  height: 60px;
  display: block;
}

.wave-line {
  fill: none;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.wave-accent { stroke: var(--accent); opacity: 0.55; }
.wave-faint  { stroke: var(--text-primary); opacity: 0.10; }

@keyframes wave-flow {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Precise Responsive Viewport Adjustments --- */
@media (max-width: 1100px) {
  .manifest-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .manifest-sticky-meta {
    position: relative;
    top: 0;
  }
  .cs-canvas-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cs-block-sticky-label {
    position: relative;
    top: 0;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 0 2rem;
  }
  .proof-inner {
    padding: 0 2rem;
    gap: 1.5rem;
  }
  .hero-headline h1 {
    font-size: 3.5rem;
  }
  .showcase-type-horizontal,
  .showcase-type-asymmetric,
  .showcase-type-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .showcase-narrative {
    order: 2;
  }
  .showcase-preview-frame {
    order: 1;
  }
  .showcase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .contact-editorial-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
  }
  .contact-portrait {
    min-height: 320px;
    max-height: 440px;
  }
  .contact-content-col {
    padding: 0;
  }
  .social-pill-group {
    justify-content: flex-start;
  }
  .cs-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.5rem;
  }
  .hero {
    padding-top: 3rem;
    min-height: auto;
    padding-bottom: 4rem;
  }
  .hero-headline h1 {
    font-size: 2.85rem;
  }
  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }
  .hero-actions-dock {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-actions-dock .btn {
    width: 100%;
  }
  .hero-meta {
    gap: 1.5rem 2.5rem;
  }
  .proof-inner {
    padding: 0 1.5rem;
  }
  .proof-logos {
    gap: 1.25rem;
  }
  .proof-logo {
    font-size: 1.15rem;
  }
  .narrative-title {
    font-size: 2rem;
  }
  .manifest-intro-title {
    font-size: 2.5rem;
  }
  .contact-headline h2 {
    font-size: 2.25rem;
  }
  .floating-dock-wrapper {
    bottom: 1rem;
  }
  .floating-dock {
    padding: 0.35rem;
  }
  .dock-item {
    padding: 0.5rem 0.7rem;
    font-size: 0.72rem;
  }
  .dock-brand {
    display: none;
  }
  .dock-separator {
    margin: 0 0.25rem;
  }
  .cs-matrix-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Accessibility: honor reduced-motion preferences --- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  #cursor-glow {
    display: none;
  }
}
