/* Layout: navbar, hero, sections, grids, ticker, footer */

/* ── Navbar ── */

.ep-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ep-nav-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--ep-border);
  height: 56px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--sp-8);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.nav-logo {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ep-text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo .dot {
  color: var(--ep-accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.nav-link {
  font-size: 13px;
  color: var(--ep-text2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--ep-text);
}
.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-left: auto;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { padding: 0 var(--sp-6); gap: var(--sp-4); }
}

/* ── Hero ── */

.ep-hero {
  position: relative;
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--sp-24) 0;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--sp-8);
  position: relative;
  z-index: 1;
}
.hero-status {
  margin-bottom: var(--sp-8);
}
.hero-tagline {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ep-text);
  max-width: 720px;
  margin-bottom: var(--sp-6);
}
.hero-tagline em {
  font-style: italic;
  color: var(--ep-accent);
}
.hero-subtitle {
  font-size: 15px;
  color: var(--ep-text2);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: var(--sp-10);
}
.hero-ctas {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.hero-bg-text {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-display);
  font-size: clamp(120px, 20vw, 240px);
  font-weight: 700;
  color: var(--ep-text);
  opacity: 0.03;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.scroll-indicator {
  position: absolute;
  bottom: var(--sp-8);
  right: var(--sp-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ep-text3);
  writing-mode: vertical-rl;
}
.scroll-indicator i {
  writing-mode: horizontal-tb;
  font-size: 14px;
}

@media (max-width: 768px) {
  .ep-hero { min-height: auto; padding: var(--sp-16) 0 var(--sp-12); }
  .hero-inner { padding: 0 var(--sp-6); }
  .hero-bg-text { opacity: 0.02; font-size: 100px; }
  .scroll-indicator { display: none; }
}

/* ── Sections ── */

.ep-section {
  padding: var(--sp-20) 0;
}
@media (max-width: 768px) {
  .ep-section { padding: var(--sp-12) 0; }
}
.section-header {
  margin-bottom: var(--sp-12);
}
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ep-accent);
  margin-bottom: var(--sp-3);
}
.section-title {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ep-text);
}
.section-title em {
  font-style: italic;
  color: var(--ep-accent);
}
.section-desc {
  font-size: 15px;
  color: var(--ep-text2);
  max-width: 520px;
  line-height: 1.7;
  margin-top: var(--sp-4);
}

/* ── Work grid ── */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card { height: 360px; }
  .work-card.featured { height: 420px; }
  .coming-soon-card { height: 360px; }
}

/* ── Process section ── */

.ep-process {
  background: var(--ep-surface);
  border-top: 0.5px solid var(--ep-border);
  border-bottom: 0.5px solid var(--ep-border);
  padding: var(--sp-20) 0;
}
@media (max-width: 768px) {
  .ep-process { padding: var(--sp-12) 0; }
}
.process-intro {
  max-width: 600px;
  font-size: 15px;
  color: var(--ep-text2);
  line-height: 1.7;
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-12);
}
.process-row-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ep-text3);
  margin-bottom: var(--sp-4);
}
.process-diamond {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
  position: relative;
}
.process-diamond::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12.5%;
  right: 12.5%;
  height: 0.5px;
  background: var(--ep-border2);
  z-index: 0;
}
.process-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--sp-10) 0;
  position: relative;
}
.process-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 0.5px;
  background: var(--ep-border);
}
.process-divider-badge {
  position: relative;
  background: var(--ep-surface);
  border: 0.5px solid var(--ep-border2);
  border-radius: var(--r-full);
  padding: 6px 20px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ep-text2);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .process-diamond { grid-template-columns: repeat(2, 1fr); }
  .process-diamond::before { display: none; }
}

/* ── Ticker ── */

.ep-ticker {
  background: var(--ep-text);
  padding: var(--sp-5) 0;
  overflow: hidden;
}
.ticker-wrap {
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 22s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-5);
  padding-right: var(--sp-5);
  color: rgba(248,246,241,0.65);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.ticker-sep {
  color: var(--ep-accent);
  opacity: 0.8;
  font-size: 10px;
}

/* ── Contact section ── */

.ep-contact {
  padding: var(--sp-20) 0;
  text-align: center;
}
@media (max-width: 768px) {
  .ep-contact { padding: var(--sp-12) 0; }
}
.contact-title {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--ep-text);
  margin-bottom: var(--sp-8);
}
.contact-title em {
  font-style: italic;
  color: var(--ep-accent);
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-8);
}

/* ── Footer ── */

.ep-footer {
  border-top: 0.5px solid var(--ep-border);
  padding: var(--sp-6) 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 12px;
  color: var(--ep-text2);
}
.footer-copy .accent { color: var(--ep-accent); }
.footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 12px;
  color: var(--ep-text2);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  font-family: var(--f-sans);
}
.footer-back-top:hover { color: var(--ep-text); }

@media (max-width: 768px) {
  .footer-inner {
    padding: 0 var(--sp-6);
    flex-direction: column;
    gap: var(--sp-3);
    text-align: center;
  }
}

/* ── Case study pages ── */

.case-hero {
  padding: var(--sp-16) 0 var(--sp-12);
  border-bottom: 0.5px solid var(--ep-border);
}
.case-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 12px;
  color: var(--ep-text2);
  text-decoration: none;
  margin-bottom: var(--sp-8);
  transition: color 0.2s;
}
.case-back:hover { color: var(--ep-text); }
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.case-title {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ep-text);
  max-width: 720px;
  margin-bottom: var(--sp-5);
}
.case-summary {
  font-size: 15px;
  color: var(--ep-text2);
  max-width: 600px;
  line-height: 1.7;
}
.case-thumb-full {
  border-radius: var(--r-xl);
  overflow: hidden;
  height: 420px;
  margin: var(--sp-12) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-section {
  padding: var(--sp-16) 0;
  border-top: 0.5px solid var(--ep-border);
}
.case-section-title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--ep-text);
  margin-bottom: var(--sp-6);
}
.case-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ep-text2);
  max-width: 680px;
}
.case-placeholder {
  background: var(--ep-surface);
  border: 0.5px dashed var(--ep-border2);
  border-radius: var(--r-xl);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-3);
  color: var(--ep-text3);
  font-size: 13px;
  margin-top: var(--sp-8);
}
.case-placeholder i { font-size: 28px; opacity: 0.4; }
.case-next-section {
  background: var(--ep-surface);
  border-top: 0.5px solid var(--ep-border);
  border-bottom: 0.5px solid var(--ep-border);
  padding: var(--sp-12) 0;
}
.next-case-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

@media (max-width: 768px) {
  .case-hero { padding: var(--sp-10) 0 var(--sp-8); }
  .case-thumb-full { height: 220px; }
  .next-case-card { flex-direction: column; align-items: flex-start; }
}

/* ── About page ── */

.about-hero {
  padding: var(--sp-16) 0 var(--sp-12);
  border-bottom: 0.5px solid var(--ep-border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
  padding: var(--sp-16) 0;
}
.about-bio {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ep-text2);
}
.about-bio p + p { margin-top: var(--sp-5); }
.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
.about-fact-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.about-fact-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ep-accent);
}
.about-fact-value {
  font-size: 15px;
  color: var(--ep-text);
}
.about-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
}
