:root {
  --ink: #0F0F11;
  --paper: #FDFBF7;
  --rose: #E8B4B8;
  --rose-soft: #f7e8ea;
  --lime: #CEF04B;
  --muted: #6E6D7A;
  --line: #E2DED6;
  --card-bg: #F3EFE7;
  --card-border: rgba(15, 15, 17, 0.08);
  --glass-bg: rgba(253, 251, 247, 0.75);
  --glass-border: rgba(15, 15, 17, 0.08);
  --archive-bg: #0F0F11;
  --archive-text: #FDFBF7;
  --archive-line: #2B2A30;
  --archive-muted: #A1A0AB;
  --accent-color: #85A800;
  --badge-green: #22C55E;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.06);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --ink: #FDFBF7;
  --paper: #0F0F11;
  --rose: #E8B4B8;
  --rose-soft: rgba(232, 180, 184, 0.12);
  --lime: #CEF04B;
  --muted: #A1A0AB;
  --line: #26252C;
  --card-bg: #18171D;
  --card-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(15, 15, 17, 0.75);
  --glass-border: rgba(255, 255, 255, 0.1);
  --archive-bg: #141318;
  --archive-text: #FDFBF7;
  --archive-line: #2A2930;
  --archive-muted: #8E8D9A;
  --accent-color: #CEF04B;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

a, a:visited, a:link, a:active {
  color: inherit;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  width: 100%;
  position: relative;
  touch-action: manipulation;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  z-index: 99;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* --- NAVIGATION --- */
.nav {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 50;
  transition: border-color var(--transition-normal), background-color var(--transition-normal);
}

[data-theme="dark"] .nav {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.brand:hover {
  opacity: 0.85;
}

.brand-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.brand-text {
  font: 800 18px 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav nav {
  display: flex;
  gap: 36px;
}

.nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.nav a:hover {
  color: var(--rose);
}

[data-theme="dark"] .nav a:hover {
  color: var(--lime);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  transition: transform var(--transition-fast), background-color var(--transition-normal), border-color var(--transition-fast);
}

.theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--rose);
}

[data-theme="dark"] .theme-toggle:hover {
  border-color: var(--lime);
}

.languages {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--card-bg);
  transition: border-color var(--transition-normal);
}

.languages button {
  background: none;
  border: 0;
  font: 500 11px 'DM Mono', monospace;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.languages button.active {
  background: var(--ink);
  color: var(--paper);
}

.nav-cta {
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background-color: var(--ink);
  color: var(--paper);
}

.nav-cta span {
  font-size: 15px;
}

/* --- HERO SECTION --- */
.hero {
  padding: 96px 0 48px;
}

.hero-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow {
  font: 600 11px 'DM Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--rose-soft);
  border: 1px solid rgba(232, 180, 184, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font: 500 12px 'DM Mono', monospace;
  color: var(--ink);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--badge-green);
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: var(--badge-green);
  opacity: 0.4;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(44px, 7.5vw, 102px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 0 0 64px;
  max-width: 1060px;
  font-weight: 800;
}

.hero em, h2 em {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.hero-bottom p {
  margin: 0;
  max-width: 440px;
  line-height: 1.6;
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
}

.round-link {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--rose);
  display: grid;
  place-items: center;
  color: #0F0F11;
  font-size: 28px;
  font-weight: 600;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.round-link:hover {
  transform: translateY(4px) scale(1.05);
  background-color: var(--lime);
}

.hero-rule {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  font: 500 11px 'DM Mono', monospace;
  color: var(--muted);
}

.hero-rule span:before {
  content: 'SCROLL TO EXPLORE';
}

/* --- AUTO SCROLLING TICKER --- */
.ticker-section {
  width: 100%;
  position: relative;
  background: var(--card-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
  user-select: none;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.ticker-wrapper {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
  will-change: transform;
}

.ticker-section:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  font: 600 13px 'DM Mono', monospace;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ticker-track .dot {
  color: var(--rose);
  font-style: normal;
}

[data-theme="dark"] .ticker-track .dot {
  color: var(--lime);
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- INTRO SECTION --- */
.intro {
  padding: 120px 0;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}

h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(34px, 4.8vw, 62px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0;
  font-weight: 800;
}

.intro-copy {
  max-width: 540px;
  font-size: 18px;
  line-height: 1.6;
  margin: 28px 0 36px;
  color: var(--muted);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills span {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  border-radius: 999px;
  padding: 8px 16px;
  font: 500 12px 'DM Mono', monospace;
  color: var(--ink);
  transition: border-color var(--transition-fast);
}

.skills span:hover {
  border-color: var(--rose);
}

/* --- FEATURED CASE STUDY SECTION --- */
.featured-case {
  padding: 80px 0 40px;
}

.case-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.case-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.case-badge {
  font: 700 11px 'DM Mono', monospace;
  background-color: var(--ink);
  color: var(--paper);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.case-tag {
  font: 600 11px 'DM Mono', monospace;
  color: var(--rose);
  letter-spacing: 0.08em;
}

.case-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.case-info h2 {
  font-size: clamp(36px, 4vw, 52px);
  margin-bottom: 12px;
}

.case-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 16px;
}

.case-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 480px;
}

.case-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-tech span {
  font: 500 11px 'DM Mono', monospace;
  padding: 6px 12px;
  background: var(--paper);
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--ink);
}

.case-preview {
  height: 280px;
  border-radius: 16px;
  background: linear-gradient(135deg, #18171D 0%, #2D2B36 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-preview-inner {
  text-align: center;
  z-index: 2;
}

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

.preview-brand {
  font: 800 32px 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 6px;
  color: #FDFBF7;
}

.preview-motto {
  font: 500 10px 'DM Mono', monospace;
  letter-spacing: 3px;
  color: var(--rose);
}

.preview-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(232, 180, 184, 0.35) 0%, rgba(0,0,0,0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* --- PROJECTS / FEATURED GRID --- */
.projects {
  padding: 100px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

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

.project-card {
  min-height: 380px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background-color: var(--card,#e5e1d8);
  border-radius: 20px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.project-card:after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid currentColor;
  border-radius: 50%;
  right: -60px;
  top: -70px;
  opacity: 0.25;
  transition: transform var(--transition-normal);
}

.project-card:hover:after {
  transform: scale(1.15);
}

.project-card:hover .arrow {
  transform: translate(6px, -6px);
}

.project-card:nth-child(3n) {
  grid-column: span 2;
  min-height: 320px;
}

.project-card:nth-child(3n) .visual {
  font-size: 72px;
}

.project-card .meta {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  font: 500 12px 'DM Mono', monospace;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.visual {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 48px;
  letter-spacing: -0.06em;
  font-weight: 800;
  position: relative;
  z-index: 1;
  max-width: 80%;
  line-height: 0.9;
}

.project-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.project-card p {
  margin: 0;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.55;
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

.arrow {
  position: absolute;
  right: 32px;
  bottom: 32px;
  font-size: 26px;
  transition: transform var(--transition-fast);
  z-index: 1;
}

/* --- ARCHIVE SECTION --- */
.archive {
  padding: 110px 0;
  background-color: var(--archive-bg);
  color: var(--archive-text);
  width: 100%;
  position: relative;
  transition: background-color var(--transition-normal);
}

.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}

.archive .eyebrow {
  color: var(--archive-muted);
}

.archive h2 {
  margin-top: 16px;
  color: var(--archive-text);
}

.archive-head > p {
  max-width: 320px;
  color: var(--archive-muted);
  font-size: 15px;
  line-height: 1.6;
}

.filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 24px;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filters button {
  font: 500 12px 'DM Mono', monospace;
  color: var(--archive-text);
  background: none;
  border: 1px solid var(--archive-line);
  padding: 10px 20px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filters button.active, .filters button:hover {
  background-color: var(--rose);
  color: #0F0F11;
  border-color: var(--rose);
}

.archive-list {
  border-top: 1px solid var(--archive-line);
}

.archive-item {
  display: grid;
  grid-template-columns: 60px 1.5fr 1fr 24px;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--archive-line);
  align-items: center;
  font-size: 15px;
  transition: padding var(--transition-fast);
}

.archive-item:hover {
  padding-left: 8px;
}

.archive-item .number, .archive-item .tag {
  font: 500 12px 'DM Mono', monospace;
  color: var(--archive-muted);
}

.archive-item .title {
  font-weight: 600;
  transition: color var(--transition-fast);
}

.archive-item:hover .title {
  color: var(--rose);
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 140px 0 120px;
  position: relative;
}

.contact h2 {
  margin: 20px 0 24px;
}

.contact > p:last-of-type {
  max-width: 460px;
  line-height: 1.6;
  color: var(--muted);
  font-size: 16px;
}

.contact-actions {
  display: flex;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 16px 28px;
  font: 600 13px 'DM Mono', monospace;
  color: var(--ink);
  background: none;
  transition: all var(--transition-fast);
}

.contact-btn:hover {
  background-color: var(--rose);
  border-color: var(--rose);
  color: #0F0F11;
  transform: translateY(-2px);
}

.contact-btn span {
  font-size: 16px;
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  font: 500 12px 'DM Mono', monospace;
  color: var(--muted);
  transition: border-color var(--transition-normal);
}

footer a {
  color: var(--ink);
  transition: color var(--transition-fast);
}

footer a:hover {
  color: var(--rose);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 900px) {
  .case-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 24px, 1180px);
  }

  .nav {
    height: 64px;
    padding: 0 4px;
  }

  .nav nav {
    display: none;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo-img {
    height: 26px;
  }

  .brand-text {
    font-size: 15px;
  }

  .nav-right {
    gap: 6px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .languages {
    padding: 2px;
  }

  .languages button {
    padding: 4px 6px;
    font-size: 10px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero h1 {
    margin-bottom: 40px;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .round-link {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .project-card, .project-card:nth-child(3n) {
    grid-column: auto;
    min-height: 320px;
  }

  .project-card:nth-child(3n) .visual {
    font-size: 48px;
  }

  .archive-head {
    display: block;
  }

  .archive-head > p {
    margin-top: 20px;
  }

  .archive-item {
    grid-template-columns: 40px 1fr 20px;
  }

  .archive-item .tag {
    display: none;
  }

  .contact {
    padding: 90px 0;
  }

  footer {
    flex-direction: column;
    gap: 12px;
  }
}
