:root {
  --bg: #f7f4ef;
  --bg2: #f0ece4;
  --border: #e2ddd6;
  --text: #1a1814;
  --muted: #5e5a56;
  --muted2: #b0aaa2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
}

/* NAV */
nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 32px 64px;
  z-index: 100;
  background: rgba(247,244,239,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

nav.scrolled { border-color: var(--border); }

.nav-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0px;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links li:not(.nav-divider) {
  width: 90px;
}

.nav-links li:first-child {
  justify-content: flex-end;
}

.nav-links li:last-child {
  justify-content: flex-start;
}

.nav-divider {
  width: 1px;
  height: 16px;
  background: var(--muted);
  flex-shrink: 0;
}

.nav-links a {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  outline: 1px solid transparent;
  outline-offset: 7px;
  transition: color 0.2s, outline-color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  outline-color: var(--border);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--muted);
  padding: 2px 0;
  outline: 1px solid transparent;
  outline-offset: 4px;
  transition: color 0.2s, outline-color 0.2s;
  font-family: inherit;
}

.lang-btn:hover {
  color: var(--text);
  outline-color: var(--border);
}

.lang-btn.active {
  color: var(--text);
}

.lang-sep {
  font-size: 10px;
  color: var(--border);
  user-select: none;
}

/* HERO */
.hero {
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 80px;
  padding-left: 24px;
  padding-right: 24px;
}

.photo-wrap {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.photo-placeholder-label span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted2);
}

.hero-intro {
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-greeting {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 16px;
}

.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-name em {
  font-style: italic;
  color: var(--muted);
}

.hero-desc {
  max-width: 460px;
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.95;
  margin: 0 auto 36px;
}

.hero-desc strong {
  color: var(--text);
  font-weight: 400;
}

.hero-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-tag {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
}

/* DIVIDER */
.section-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  margin: 0 auto;
}

/* WORK */
.work {
  padding: 64px 64px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 48px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}

.project-thumb {
  width: 52%;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: var(--border);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.5) brightness(0.95);
  transition: transform 0.5s ease, filter 0.4s;
}

.project-card:hover .project-thumb img {
  transform: scale(1.02);
  filter: saturate(0.75) brightness(1);
}

.project-thumb-empty {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb-empty span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted2);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,24,20,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .project-overlay { opacity: 1; }

.project-view-btn {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bg);
  border: 1px solid rgba(247,244,239,0.5);
  padding: 10px 20px;
  text-decoration: none;
  transition: background 0.2s;
}

.project-view-btn:hover { background: rgba(247,244,239,0.1); }

.project-info {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-cat {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 6px;
}

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
}

.project-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* CONTACT */
.contact {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 80px 64px;
  text-align: center;
}

.contact-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.contact-title em { font-style: italic; color: var(--muted); }

.contact-sub {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 52px;
}

.contact-items {
  display: flex;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
  max-width: 680px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  flex: 1;
  min-width: 160px;
}

.contact-item:hover {
  background: white;
  transform: translateY(-2px);
}

.contact-item-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 8px;
}

.contact-item-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  color: var(--text);
}

/* PRICING */
.pricing {
  padding: 64px 64px 80px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.pricing-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.pricing-divider {
  width: 1px;
  background: var(--muted);
  flex-shrink: 0;
  margin: 0 56px;
  align-self: stretch;
}

.pricing-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 300px;
  padding: 8px 0;
}

.pricing-item-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 20px;
  text-align: center;
}

.pricing-item-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 16px;
}

.pricing-item-per {
  font-size: 0.45em;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 300;
  vertical-align: baseline;
}

.pricing-item-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
}

.pricing-plans {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 300px;
}

.pricing-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
}

.pricing-plan-name {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 12px;
}

.pricing-plan-sep {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
}

/* FOOTER */
footer {
  padding: 24px 64px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--muted);
}

.footer-copy {
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 1px;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .work { padding: 48px 24px 60px; }
  .project-grid { grid-template-columns: 1fr; gap: 12px; }
  .project-card { flex-direction: column; }
  .project-thumb { width: 100%; min-height: 180px; }
  .contact { padding: 60px 24px; }
  .contact-items { flex-direction: column; }
  .pricing { padding: 48px 24px 60px; }
  .pricing-items { flex-direction: column; align-items: center; gap: 40px; }
  .pricing-divider { width: 80px; height: 1px; margin: 0; align-self: auto; }
  footer { padding: 20px 24px; flex-direction: column; gap: 6px; text-align: center; }
  *, *::before, *::after { cursor: auto !important; }
  .c-dot, .c-ring { display: none !important; }
}

/* CUSTOM CURSOR */
*, *::before, *::after { cursor: none !important; }

.c-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, opacity 0.2s ease;
  will-change: left, top;
  mix-blend-mode: difference;
}

.c-ring {
  position: fixed;
  width: 34px; height: 34px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
  will-change: left, top;
  mix-blend-mode: difference;
}

.c-ring.hovered {
  width: 52px; height: 52px;
  opacity: 0.9;
}

.c-dot.hovered {
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0.5;
}

/* =============================================
   INTRO ANIMATION
   ============================================= */

#intro-blur-layer {
  position: fixed;
  inset: 0;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(4px);
  pointer-events: none;
}

#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: all;
}

#intro-overlay.fade-out {
  animation: introFadeOut 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes introFadeOut {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

#intro-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#intro-dark-bg {
  position: absolute;
  inset: 0;
  background: rgba(14, 13, 11, 0.88);
}

#intro-logo-wrap {
  position: relative;
  z-index: 1;
  width: clamp(140px, 38vmin, 310px);
}

#intro-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  display: block;
}

#intro-fill {
  fill: #f7f4ef;
}

