/* =============================================
   EPOCH Studio — Style System
   ============================================= */

:root {
  --cream: #F4EFE6;
  --cream-dark: #EDE8DF;
  --ink: #0A0A0A;
  --ink-soft: rgba(10,10,10,0.45);
  --red: #FF2D00;
  --red-dark: #CC2400;
  --border: rgba(10,10,10,0.12);

  --font-display: 'Cabinet Grotesk', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'DM Mono', monospace;

  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; cursor: none; }
em { font-family: var(--font-serif); font-style: italic; }
.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; }
sup { font-size: 0.5em; vertical-align: super; }

/* =============================================
   CUSTOM CURSOR
   ============================================= */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

.cursor__ring {
  width: 12px; height: 12px;
  background: var(--ink);
  border-radius: 50%;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s, border-radius 0.25s;
}

.cursor__label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--cream);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

body.cursor-expanded .cursor__ring {
  width: 80px; height: 80px;
  background: var(--ink);
  border-radius: 50%;
}

body.cursor-expanded .cursor__label { opacity: 1; }

body.cursor-link .cursor__ring {
  width: 48px; height: 48px;
  background: var(--red);
}

/* =============================================
   LOADER
   ============================================= */
.loader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader__bars {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  display: flex;
}

.loader__bar {
  flex: 1;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

.loader__count {
  position: absolute;
  bottom: 48px;
  right: 48px;
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 900;
  color: rgba(244,239,230,0.08);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
}

.loader__word {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.5);
  overflow: hidden;
}

.loader__word span {
  display: block;
  transform: translateY(100%);
}

/* =============================================
   PAGE TRANSITION
   ============================================= */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.pt__block {
  flex: 1;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 16px 40px;
  background: rgba(244,239,230,0.92);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav__left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav__tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.nav__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.nav__dot {
  width: 6px; height: 6px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.nav__right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  transition: color 0.3s;
}

.nav__link:hover, .nav__link.active { color: var(--ink); }

.nav__cta {
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 24px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s;
  overflow: hidden;
  position: relative;
}

.nav__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
  z-index: 0;
}

.nav__cta span { position: relative; z-index: 1; }
.nav__cta:hover::before { transform: translateX(0); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 40px 120px;
  overflow: hidden;
}

.hero__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(12vw, 18vw, 22vw);
  color: rgba(10,10,10,0.035);
  letter-spacing: -0.04em;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  color: var(--ink-soft);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 8.5vw, 10rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 60px;
}

.hero__line {
  overflow: hidden;
  display: block;
}

.hero__line--italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.reveal-text {
  display: inline-block;
  transform: translateY(110%);
}

.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero__desc p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 360px;
}

.hero__scroll-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: var(--ink-soft);
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: var(--ink-soft);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(-100%);
  animation: lineSlide 2s var(--ease-out) infinite 1.5s;
}

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

/* HERO TICKER */
.hero__ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  border-top: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
  background: rgba(244,239,230,0.5);
}

.hero__ticker-inner {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: ticker 18s linear infinite;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__ticker-inner .sep { color: var(--red); }

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

/* =============================================
   WORK LIST
   ============================================= */
.work-section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.work-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-bottom: 40px;
  color: var(--ink-soft);
}

.text-link {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.text-link:hover { color: var(--red); border-color: var(--red); }

/* hover-image preview */
.work-preview-img {
  position: fixed;
  width: 380px;
  height: 280px;
  pointer-events: none;
  z-index: 500;
  opacity: 0;
  border-radius: 4px;
  overflow: hidden;
  top: 0; left: 0;
}

.work-preview-img__inner {
  width: 100%; height: 100%;
  border-radius: 4px;
  transition: background 0.4s var(--ease);
}

.work-list { position: relative; }

.work-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  cursor: none;
  transition: padding 0.3s var(--ease);
}

.work-item:hover { padding: 28px 16px; }
.work-item:hover .work-item__title { color: var(--red); }
.work-item:hover .work-item__arrow { transform: translate(4px, -4px); }

.work-item__left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.work-item__num { color: var(--ink-soft); font-size: 0.7rem; }

.work-item__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

.work-item__tags {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.work-item__right {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-soft);
}

.work-item__arrow {
  font-size: 1.4rem;
  transition: transform 0.3s var(--ease);
}

/* =============================================
   STATEMENT
   ============================================= */
.statement-section {
  padding: 120px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.statement-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.statement-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 40px;
}

.st-word { display: inline-block; margin-right: 0.25em; }
.st-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.statement-meta { color: var(--ink-soft); }

/* =============================================
   INFO STRIP
   ============================================= */
.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}

.info-col {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
}

.info-col:last-child { border-right: none; }

.info-label {
  display: block;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.info-col p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink);
}

.info-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
  transition: color 0.3s;
}

.info-cta:hover { color: var(--red); }
.info-cta svg { width: 36px; height: 36px; }

/* =============================================
   PAGE HEADER
   ============================================= */
.page-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 160px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-end;
}

.page-header__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 8vw, 9rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-top: 20px;
}

.page-header__right {
  padding-bottom: 12px;
}

.page-header__right p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* =============================================
   PROJECT GRID (work page)
   ============================================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 380px;
  gap: 2px;
  background: var(--border);
  padding: 0 40px 80px;
}

.pg-item {
  background: var(--cream);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: none;
}

.pg-item--wide { grid-column: span 2; }
.pg-item--tall { grid-row: span 2; }

.pg-item__media {
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: transform 0.8s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-item:hover .pg-item__media { transform: scale(1.04); }

.pg-item__bg-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 8vw, 10rem);
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.04em;
  user-select: none;
}

.pg-item__info {
  background: var(--cream-dark);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--border);
}

.pg-item__info span.mono { color: var(--ink-soft); font-size: 0.65rem; }
.pg-item__info h2 {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
}

.pg-item__info p {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.pg-item__arrow {
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  transform: translate(-4px, 4px);
}

.pg-item:hover .pg-item__arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-sticky {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 0 40px 120px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.about-sticky__left {}
.about-sticky__right {
  position: sticky;
  top: 120px;
  height: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-large {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 32px;
}

.about-body {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.about-stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--red);
}

.about-stat__label {
  display: block;
  color: var(--ink-soft);
  margin-top: 8px;
}

.about-img {
  border-radius: 8px;
}

.about-img--1 { flex: 3; }
.about-img--2 { flex: 1; }

/* SERVICES */
.services-section {
  padding: 80px 40px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-header {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-bottom: 48px;
  color: var(--ink-soft);
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.service-item__num { color: var(--ink-soft); padding-top: 4px; }

.service-item__content h3 {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.service-item__content p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* =============================================
   CONTACT BIG
   ============================================= */
.contact-big {
  padding: 120px 40px;
  border-top: 1px solid var(--border);
}

.contact-big__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label { color: var(--ink-soft); display: block; margin-bottom: 32px; }

.contact-big__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 9rem);
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 48px;
}

.contact-big__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.contact-big__email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--border);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}

.contact-big__email:hover { color: var(--red); border-color: var(--red); }

/* =============================================
   NEXT PAGE
   ============================================= */
.next-page {
  padding: 80px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.next-page .mono { color: var(--ink-soft); }

.next-page__link {
  display: inline-block;
  position: relative;
}

.next-page__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 5rem);
  letter-spacing: -0.03em;
  transition: color 0.3s;
}

.next-page__link:hover .next-page__title { color: var(--red); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.footer__large-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(10vw, 15vw, 18vw);
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: rgba(10,10,10,0.06);
  padding: 20px 40px 0;
  user-select: none;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.78rem;
  transition: color 0.3s;
}

.footer__links a:hover { color: var(--ink); }

/* =============================================
   MAGNETIC
   ============================================= */
.magnetic {
  will-change: transform;
  transition: transform 0.4s var(--ease);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .info-strip { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .pg-item--wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav__center, .nav__tagline { display: none; }
  .hero, .work-section, .statement-section { padding-left: 24px; padding-right: 24px; }
  .hero__bottom { flex-direction: column; gap: 32px; align-items: flex-start; }
  .page-header { grid-template-columns: 1fr; padding: 120px 24px 60px; }
  .about-sticky { grid-template-columns: 1fr; }
  .about-sticky__right { position: relative; top: 0; height: 400px; }
  .info-strip { grid-template-columns: 1fr; }
  .info-col { border-right: none; border-bottom: 1px solid var(--border); }
  .project-grid { grid-template-columns: 1fr; padding: 0 24px 60px; }
  .pg-item--wide { grid-column: span 1; }
}
