/* ============================================
   ZAYAN — Premium Editorial Portfolio
   ============================================ */

:root {
  --bg: #0e0c0a;
  --gold: #c9a84c;
  --gold-muted: rgba(201, 168, 76, 0.4);
  --text: #f0ebe0;
  --text-muted: rgba(240, 235, 224, 0.5);
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ---- Loader ---- */
.loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #0e0c0a;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(56px, 8vw, 80px);
  color: var(--gold);
  text-align: center;
}

/* ---- Side Navigation ---- */
.side-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9997;
  align-items: center;
}

.side-nav-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2a2620;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s;
  display: block;
}

.side-nav-dot.active {
  width: 6px;
  height: 6px;
  background: var(--gold);
}

/* ---- Scroll Progress ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 3px;
  height: 0%;
  background: var(--gold);
  z-index: 9998;
  transition: height 0.05s linear;
}

/* ---- Particle Canvas ---- */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8vw;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.hero-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(72px, 10vw, 130px);
  color: var(--text);
  line-height: 1;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 28px;
}

.hero-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 20px;
}

.hero-location {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.hero-photo-wrap {
  flex: 0 0 auto;
  width: clamp(280px, 30vw, 440px);
  z-index: 2;
  will-change: transform;
  position: relative;
}

.hero-photo {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(60%) contrast(1.1) brightness(0.9);
  border-radius: 2px;
}

#heroBloomCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 2px;
}

/* ---- Stats ---- */
.stats {
  position: relative;
  z-index: 1;
  padding: 60px 8vw 80px;
}

.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(48px, 6vw, 80px);
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: #888;
  text-align: center;
}

/* ---- About Intro ---- */
.about-intro {
  position: relative;
  z-index: 1;
  padding: 80px 8vw 40px;
}

.about-intro-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.about-intro-line1 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
  clip-path: inset(100% 0 0 0);
}

.about-intro-line2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #888;
  line-height: 1.5;
  clip-path: inset(100% 0 0 0);
}

/* ---- Manifesto ---- */
.manifesto {
  position: relative;
  z-index: 1;
  padding: 80px 8vw;
}

.manifesto-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-rule {
  width: 100%;
  height: 0.5px;
  background: var(--gold-muted);
  margin: 40px 0;
}

.manifesto-line {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(32px, 5vw, 56px);
  color: var(--text);
  line-height: 1.3;
  margin: 24px 0;
  clip-path: inset(100% 0 0 0);
}

/* ---- Sections ---- */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 8vw;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 20px;
}

.section-number {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
  vertical-align: super;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--text);
  line-height: 1.15;
  clip-path: inset(100% 0 0 0);
}

.section-rule {
  width: 100%;
  height: 0.5px;
  background: var(--gold-muted);
  margin: 32px 0 48px;
}

/* ---- Expertise ---- */
.expertise-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.expertise-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 0.5px solid rgba(201, 168, 76, 0.15);
  clip-path: inset(0 100% 0 0);
}

.expertise-label {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--text);
  min-width: 120px;
}

.expertise-dot {
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
}

.expertise-desc {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--text-muted);
}

/* ---- Projects ---- */
.projects {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-item {
  display: grid;
  grid-template-columns: 40px 1fr 2fr auto;
  align-items: baseline;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 0.5px solid rgba(201, 168, 76, 0.15);
  text-decoration: none;
  color: var(--text);
  position: relative;
  clip-path: inset(0 100% 0 0);
}

.project-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 0.5px;
  background: var(--gold);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s cubic-bezier(0.25, 0, 0.15, 1);
}

.project-item:hover::after {
  clip-path: inset(0 0 0 0);
}

.project-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
}

.project-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  white-space: nowrap;
  color: var(--text);
  transition: transform 0.4s cubic-bezier(0.25, 0, 0.15, 1);
  display: inline-block;
}

.project-item:hover .project-name {
  transform: translateX(6px);
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
}

.project-url {
  font-size: 11px;
  color: rgba(201, 168, 76, 0.5);
  letter-spacing: 1px;
  text-align: right;
}

/* ---- Work Sublabel ---- */
.work-sublabel {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-top: 48px;
  margin-bottom: 16px;
}

/* ---- Certificates ---- */
.certificates-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
}

.cert-item {
  cursor: default;
}

/* ---- Photography ---- */
.photography-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #888;
  margin-top: 8px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
}

.photo-grid-item {
  overflow: hidden;
  transform: rotate(var(--rot, 0deg)) translateY(30px) translateZ(0);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.25, 0, 0.15, 1);
  will-change: transform, opacity;
}

.photo-grid-item.in-view {
  opacity: 1;
  transform: rotate(var(--rot, 0deg)) translateY(0) translateZ(0);
}

.photo-grid-item:hover {
  transform: rotate(0deg) scale(1.04) translateZ(0);
  z-index: 2;
}

.photo-grid-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  filter: sepia(15%) brightness(0.92);
}

/* ---- Design Languages ---- */
.design-languages-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #888;
  margin-top: 8px;
}

.philosophy-cards {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.philosophy-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  opacity: 0;
  transform: perspective(1200px) rotateX(-90deg);
  transform-origin: top center;
}

.philosophy-card:nth-child(even) {
  direction: rtl;
}
.philosophy-card:nth-child(even) > * {
  direction: ltr;
}

/* --- Text side --- */
.philosophy-text {
  display: flex;
  flex-direction: column;
}

.philosophy-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.philosophy-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--text);
  line-height: 1.2;
}

.philosophy-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 8px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 3px 8px;
  border-radius: 1px;
  white-space: nowrap;
}

.philosophy-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Visual side (shared) --- */
.philosophy-visual {
  width: 260px;
  height: 200px;
  position: relative;
  flex-shrink: 0;
}

/* === PAPER DESIGN visual === */
.pv-paper {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #F5F0E8 0%, #E8DFD2 100%);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-paper-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.pv-paper-sheet {
  position: absolute;
  width: 160px;
  height: 120px;
  background: #FDFAF4;
  box-shadow:
    0 1px 2px rgba(90, 60, 30, 0.04),
    0 4px 8px rgba(90, 60, 30, 0.06),
    0 12px 24px rgba(90, 60, 30, 0.08);
}

.pv-paper-sheet--back {
  transform: rotate(-5deg) translate(-12px, 8px);
  opacity: 0.45;
  clip-path: polygon(2% 0%, 98% 1%, 100% 3%, 99% 97%, 97% 100%, 3% 99%, 0% 97%, 1% 2%);
}

.pv-paper-sheet--mid {
  transform: rotate(2.5deg) translate(6px, -4px);
  opacity: 0.65;
  background: #FAF5EC;
  clip-path: polygon(0% 1%, 97% 0%, 100% 2%, 99% 98%, 98% 100%, 1% 99%, 0% 96%);
}

.pv-paper-sheet--front {
  transform: rotate(-0.4deg);
  z-index: 2;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  clip-path: polygon(1% 0%, 99% 0%, 100% 1%, 100% 98%, 98% 100%, 0% 100%, 0% 99%, 0% 1%);
}

.pv-paper-heading {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  color: #1A1510;
  line-height: 1.2;
  margin-bottom: 2px;
}

.pv-paper-sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 10px;
  color: #C9A96E;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.pv-paper-rule {
  width: 30px;
  height: 1px;
  background: #C9A96E;
  margin-bottom: 10px;
}

.pv-paper-body {
  width: 85%;
  height: 3px;
  background: rgba(90, 60, 30, 0.08);
  border-radius: 1px;
  margin-bottom: 5px;
}

.pv-paper-body--short {
  width: 55%;
}

/* === CHRONOMORPHISM visual === */
.pv-chrono {
  width: 100%;
  height: 100%;
  background: #0B0D10;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  gap: 12px;
}

.pv-chrono-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  opacity: 0.35;
  mix-blend-mode: overlay;
  image-rendering: pixelated;
}

.pv-chrono-glow {
  position: absolute;
  top: 10%;
  left: 20%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(107, 164, 200, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.pv-chrono-card {
  position: relative;
  z-index: 2;
  background: #131820;
  border: 1px solid rgba(107, 164, 200, 0.06);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.pv-chrono-card--fresh {
  width: 120px;
  height: 110px;
  border-radius: 16px 10px 20px 12px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.35),
    0 8px 24px rgba(0,0,0,0.18),
    0 20px 60px rgba(0,0,0,0.10),
    inset 0 0 30px rgba(107, 164, 200, 0.03);
}

.pv-chrono-card--decay {
  width: 100px;
  height: 72px;
  border-radius: 10px 14px 8px 16px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.35),
    0 8px 24px rgba(0,0,0,0.18),
    0 20px 60px rgba(0,0,0,0.10);
  filter: blur(0.8px) saturate(0.7);
  transform: skew(1.5deg);
  opacity: 0.65;
}

.pv-chrono-patina {
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: 65%;
  background: radial-gradient(ellipse at 20% 20%, rgba(107, 164, 200, 0.08), transparent 70%);
  pointer-events: none;
}

.pv-chrono-label {
  font-family: 'Courier New', monospace;
  font-size: 7px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6E7E8A;
}

.pv-chrono-serif {
  font-family: Georgia, 'Palatino Linotype', serif;
  font-size: 16px;
  font-weight: 400;
  color: #D8E4EC;
  line-height: 1;
}

.pv-chrono-bar {
  width: 70%;
  height: 3px;
  background: rgba(216, 228, 236, 0.08);
  border-radius: 1px;
}

.pv-chrono-bar--short {
  width: 45%;
}

.pv-chrono-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6BA4C8;
  box-shadow: 0 0 10px rgba(107, 164, 200, 0.4);
  animation: chronoBreathe 4s ease-in-out infinite;
  margin-top: auto;
}

@keyframes chronoBreathe {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.3); }
}

/* === PERSPECTIVE-SKEUOMORPHISM visual === */
.pv-perskeu {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #2a2a2e 0%, #1a1a1e 100%);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
}

.pv-perskeu-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(80, 80, 90, 0.08) 100%);
}

.pv-perskeu-card {
  width: 140px;
  height: 100px;
  background: linear-gradient(145deg, #3a3a42 0%, #2a2a32 100%);
  border-radius: 10px;
  position: relative;
  z-index: 2;
  transform: rotateY(-8deg) rotateX(4deg);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.3),
    0 8px 20px rgba(0,0,0,0.25),
    0 20px 40px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.pv-perskeu-shine {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.pv-perskeu-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pv-perskeu-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(180, 140, 100, 0.5), rgba(140, 100, 70, 0.3));
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.08), inset 0 -1px 2px rgba(0,0,0,0.2);
}

.pv-perskeu-bar {
  width: 75%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
}

.pv-perskeu-bar--short {
  width: 50%;
}

/* ---- Books ---- */
.books {
  display: flex;
  gap: clamp(30px, 6vw, 80px);
  justify-content: center;
  align-items: center;
  margin-bottom: 64px;
}

.book-item {
  transform: scale(0.9);
  opacity: 0;
}

.book-cover {
  width: clamp(180px, 20vw, 260px);
  height: auto;
  display: block;
  filter: sepia(30%) saturate(1.3) brightness(0.85) hue-rotate(-10deg);
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#bookScott .book-cover {
  transform: rotate(-2deg);
}

#book97th .book-cover {
  transform: rotate(1.5deg);
}

.author-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--gold);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.quote-attr {
  font-family: 'Space Grotesk', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline;
  white-space: nowrap;
}

/* ---- Contact ---- */
.contact {
  padding-bottom: 80px;
}

.contact-title {
  font-size: clamp(56px, 7vw, 96px) !important;
}

.contact-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 40px;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 80px;
}

.contact-link {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--text);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s;
}
.contact-link:hover {
  color: var(--gold);
}

.contact-footer {
  font-size: 12px;
  color: var(--gold-muted);
  letter-spacing: 2px;
}

/* ---- Collections ---- */
.collections-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #888;
  margin-top: 8px;
}

.collections-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.collection-category {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 32px 0;
  clip-path: inset(0 100% 0 0);
}

.collection-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 4px;
}

.collection-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.collection-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.collection-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--text);
  line-height: 1.3;
}

.collection-note {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.collection-divider {
  width: 100%;
  height: 0.5px;
  background: rgba(201, 168, 76, 0.15);
}

/* ---- Thinking Pattern ---- */

.thinking-pattern {
  padding-top: 80px;
  padding-bottom: 80px;
}

.tp-subtitle {
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
  max-width: 540px;
}

.tp-input-wrap {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  max-width: 520px;
}

/* Canvas + response collapsed on load, GSAP expands on submit */

.tp-input {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 0;
  padding: 14px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}

.tp-input::placeholder {
  color: rgba(240,235,224,0.25);
}

.tp-input:focus {
  border-color: var(--gold);
}

.tp-submit {
  background: transparent;
  border: 1px solid var(--gold-muted);
  border-radius: 0;
  padding: 14px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--gold);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: background 0.3s, border-color 0.3s;
  white-space: nowrap;
}

.tp-submit:hover {
  background: rgba(201,168,76,0.06);
  border-color: var(--gold);
}

.tp-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tp-canvas-wrap {
  margin-top: 32px;
  width: 100%;
  height: 380px;
  position: relative;
  overflow: hidden;
}

#tpCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.tp-divider {
  width: 100%;
  height: 1px;
  background: rgba(201,168,76,0.1);
  margin: 24px 0;
}

.tp-output {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  min-height: 48px;
  flex-wrap: wrap;
}

.tp-output span {
  display: inline-block;
  will-change: transform, opacity;
}

.tp-output .tp-cursor {
  display: inline-block;
  width: 6px;
  height: 14px;
  background: var(--gold);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: tpBlink 0.8s step-end infinite;
}

@keyframes tpBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .side-nav {
    display: none;
  }

  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 0;
  }

  .manifesto {
    padding: 60px 6vw;
  }

  .hero {
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 100px 6vw 60px;
    text-align: center;
  }

  .hero-photo-wrap {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-rule {
    margin: 20px auto;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 80px 6vw;
  }

  .expertise-row {
    gap: 12px;
  }

  .expertise-label {
    min-width: 80px;
    font-size: 18px;
  }

  .expertise-desc {
    font-size: 14px;
  }

  .project-item {
    grid-template-columns: 30px 1fr;
    gap: 6px 12px;
  }

  .project-name {
    white-space: normal;
    font-size: 18px;
  }

  .project-desc {
    grid-column: 2;
    font-size: 13px;
  }

  .project-url {
    grid-column: 2;
    text-align: left;
    font-size: 10px;
  }

  .photo-grid {
    gap: 16px;
  }

  .photo-grid-item img {
    height: 200px;
  }

  .philosophy-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .philosophy-card:nth-child(even) {
    direction: ltr;
  }

  .philosophy-visual {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .thinking-pattern {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .tp-input-wrap {
    flex-direction: column;
    max-width: 100%;
  }

  .tp-canvas-wrap {
    height: 300px;
  }

  .collection-category {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .collection-title {
    font-size: 18px;
  }

  .books {
    flex-direction: column;
    gap: 40px;
  }

  .book-cover {
    width: clamp(200px, 60vw, 280px);
  }

  .author-quote {
    font-size: 18px;
    padding: 0 4vw;
  }

  .contact-details {
    gap: 16px;
  }

  .contact-link {
    font-size: 16px;
    word-break: break-all;
  }
}
