*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #0F1826;
  color: #EDE8DD;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: #B8865A; color: #0F1826; }
a { color: #B8865A; text-decoration: none; }
a:hover { color: #EDE8DD; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(15, 24, 38, 0.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 134, 90, 0.15);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-text .title { font-family: 'Playfair Display', serif; font-size: 15px; letter-spacing: 0.1em; color: #EDE8DD; }
.brand-text .subtitle { font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 0.18em; color: #B8865A; margin-top: 2px; }
.nav-desktop { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 28px; font-size: 13px; letter-spacing: 0.03em; }
.nav-links a { color: #A8A29A; transition: color 0.25s; }
.nav-links a:hover { color: #EDE8DD; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-cta {
  padding: 9px 18px; border: 1px solid #B8865A; color: #EDE8DD;
  font-size: 12px; letter-spacing: 0.04em;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: #B8865A; color: #0F1826; }
.lang-switch { display: flex; gap: 10px; font-size: 13px; letter-spacing: 0.06em; align-items: center; }
.lang-switch a { color: #A8A29A; transition: color 0.25s; }
.lang-switch a.active, .lang-switch a:hover { color: #EDE8DD; }
.lang-switch .sep { color: #4a5468; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; padding: 8px; width: 38px; height: 38px;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 22px; height: 1px; background: #EDE8DD;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: #0F1826;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 34px; padding: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: #EDE8DD; font-family: 'Playfair Display', serif; font-size: 24px;
}
.mobile-menu .nav-cta { font-family: 'Inter', sans-serif; margin-top: 14px; padding: 14px 30px; font-size: 13px; }
.mobile-menu .lang-switch { font-size: 14px; margin-top: 10px; }

/* HERO */
.hero {
  position: relative; max-width: 1280px; margin: 0 auto;
  padding: 170px clamp(20px, 5vw, 64px) 110px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  overflow: hidden;
}
.hero-signet {
  position: absolute; right: -220px; top: 50%; transform: translateY(-50%);
  opacity: 0.04; pointer-events: none; z-index: 0;
  width: 900px; height: 780px;
}
.hero-content { flex: 1 1 460px; min-width: 300px; position: relative; z-index: 1; }
.hero-content h1 {
  font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.28;
  color: #EDE8DD; margin-bottom: 20px;
}
.hero-line {
  width: 64px; height: 1px; background: #B8865A; margin-bottom: 28px;
  animation: lineGrow 1.2s ease-out both;
}
.hero-content p {
  font-size: 17px; line-height: 1.75; color: #A8A29A;
  max-width: 520px; margin-bottom: 40px;
}
.hero-cta {
  display: inline-block; padding: 16px 34px;
  border: 1px solid #B8865A; color: #EDE8DD;
  font-size: 14px; letter-spacing: 0.05em;
  transition: background 0.3s, color 0.3s;
}
.hero-cta:hover { background: #B8865A; color: #0F1826; }
.hero-pillars {
  margin-top: 22px; font-size: 11px; letter-spacing: 0.14em; color: #B8865A;
}
.hero-portrait {
  flex: 1 1 340px; min-width: 280px; max-width: 460px; margin: 0 auto;
  position: relative; z-index: 1;
}
.hero-portrait-frame { position: relative; overflow: hidden; }
.hero-portrait-frame img {
  width: 100%; filter: grayscale(0.15) contrast(1.02);
}
.hero-portrait-frame::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 90px 40px #0F1826;
}

@keyframes lineGrow { from { width: 0; } to { width: 64px; } }

/* SERVICES */
.services {
  max-width: 1200px; margin: 0 auto;
  padding: 60px clamp(20px, 5vw, 64px) 120px;
}
.services h2, .about h2, .situations h2, .positions h2 {
  font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: clamp(24px, 3vw, 32px); color: #EDE8DD; margin-bottom: 64px;
}
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(184, 134, 90, 0.2);
  border: 1px solid rgba(184, 134, 90, 0.2);
}
.service-card {
  background: #141C2E; padding: 36px 28px; position: relative;
  text-align: center; display: flex; flex-direction: column; align-items: center;
  transition: transform 0.25s, background 0.25s;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: #B8865A; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-3px); background: #182238; }
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-family: 'Playfair Display', serif; font-size: 26px;
  color: #B8865A; margin-bottom: 16px;
}
.service-title {
  font-family: 'Playfair Display', serif; font-size: 18px;
  color: #EDE8DD; margin-bottom: 10px;
}
.service-line { font-size: 14px; line-height: 1.6; color: #A8A29A; }
.services-note {
  margin-top: 56px; font-size: 16px; line-height: 1.7; color: #A8A29A;
  max-width: 640px; border-left: 1px solid #B8865A; padding-left: 24px;
}

/* ABOUT */
.about { background: #141C2E; }
.about-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 120px clamp(20px, 5vw, 64px);
  display: flex; flex-wrap: wrap; gap: 64px;
}
.about-text { flex: 1 1 440px; min-width: 280px; }
.about-text h2 { margin-bottom: 32px; }
.about-text p {
  font-size: 16px; line-height: 1.8; color: #A8A29A; margin-bottom: 22px;
}
.about-text p.langs {
  margin-top: 8px; font-size: 14px; letter-spacing: 0.03em; color: #B8865A;
}
.about-experience {
  flex: 1 1 380px; min-width: 280px;
  border-left: 1px solid rgba(184, 134, 90, 0.35); padding-left: 36px;
}
.exp-item { margin-bottom: 40px; }
.exp-item:last-child { margin-bottom: 0; }
.exp-label {
  font-size: 12px; letter-spacing: 0.14em; color: #B8865A; margin-bottom: 10px;
}
.exp-text { font-size: 15px; line-height: 1.65; color: #EDE8DD; }

/* SITUATIONS */
.situations {
  max-width: 1200px; margin: 0 auto;
  padding: 120px clamp(20px, 5vw, 64px);
}
.situations h2 { margin-bottom: 56px; }
.situations-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px 64px;
}
.situation {
  padding-top: 24px; border-top: 1px solid rgba(184, 134, 90, 0.3);
  transition: border-color 0.3s;
}
.situation:hover { border-top-color: #B8865A; }
.situation-num {
  font-size: 12px; letter-spacing: 0.16em; color: #B8865A; margin-bottom: 12px;
}
.situation-title {
  font-family: 'Playfair Display', serif; font-size: 18px;
  color: #EDE8DD; margin-bottom: 12px; line-height: 1.4;
}
.situation-desc { font-size: 14px; line-height: 1.7; color: #A8A29A; }

/* POSITIONS / TIMELINE */
.positions { background: #141C2E; }
.positions-inner {
  max-width: 1000px; margin: 0 auto;
  padding: 120px clamp(20px, 5vw, 64px);
}
.positions h2 { margin-bottom: 20px; }
.positions-note {
  font-size: 14px; color: #A8A29A; margin-bottom: 72px; max-width: 600px;
}
.position {
  display: flex; gap: 32px; padding-bottom: 64px; margin-bottom: 64px;
  border-bottom: 1px solid rgba(184, 134, 90, 0.15); position: relative;
}
.position:last-child { border-bottom: none; margin-bottom: 0; }
.position-year {
  flex-shrink: 0; width: 110px;
  font-family: 'Playfair Display', serif; font-size: 30px; color: #B8865A;
}
.position-content { flex: 1; min-width: 0; }
.position-hotel {
  font-family: 'Playfair Display', serif; font-size: 20px;
  color: #EDE8DD; margin-bottom: 6px;
}
.position-role {
  font-size: 13px; letter-spacing: 0.06em; color: #B8865A; margin-bottom: 18px;
}
.position-bullet {
  font-size: 15px; line-height: 1.7; color: #A8A29A;
  padding-left: 16px; position: relative; margin-bottom: 6px;
}
.position-bullet::before {
  content: '·'; position: absolute; left: 0; color: #B8865A;
}

/* CHAPTER MARKER */
.chapter-marker {
  display: flex; justify-content: center; padding: 70px 0 0;
}

/* DIGITAL SOLUTIONS */
.digital {
  background: linear-gradient(160deg, #0F1826 0%, #1a2233 100%);
}
.digital-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 100px clamp(20px, 5vw, 64px);
  display: flex; flex-wrap: wrap; gap: 64px;
}
.digital-intro { flex: 1 1 340px; min-width: 280px; }
.digital-label {
  font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.2em;
  color: #EDE8DD; margin-bottom: 24px;
}
.digital-intro p {
  font-family: 'Inter', sans-serif; font-size: 19px; line-height: 1.6;
  color: #A8A29A; margin-bottom: 36px; max-width: 380px;
}
.digital-principle {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px;
  font-size: 13px; letter-spacing: 0.04em; color: #EDE8DD;
}
.digital-principle span { color: #B8865A; }

.clavio-card {
  flex: 1 1 440px; min-width: 300px; max-width: 640px;
}
.clavio-inner {
  border: 1px solid rgba(184, 134, 90, 0.3);
  background: rgba(20, 28, 46, 0.6); padding: 32px;
}
.clavio-project-label {
  font-size: 11px; letter-spacing: 0.18em; color: #B8865A; margin-bottom: 14px;
}
.clavio-name {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 26px;
  color: #EDE8DD; margin-bottom: 22px;
}
.clavio-screenshot {
  position: relative; border: 1px solid rgba(184, 134, 90, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden; margin-bottom: 12px;
}
.clavio-screenshot img { transition: transform 0.5s; }
.clavio-screenshot:hover img { transform: scale(1.03); }
.clavio-demo-label {
  font-size: 11px; letter-spacing: 0.14em; color: #B8865A;
  text-align: right; margin-bottom: 24px;
}
.clavio-desc {
  font-size: 15px; line-height: 1.7; color: #A8A29A; margin-bottom: 22px;
}
.clavio-link {
  display: inline-block; font-size: 13px; letter-spacing: 0.06em;
  color: #B8865A; border-bottom: 1px solid #B8865A; padding-bottom: 2px;
}

/* CONTACT */
.contact { background: #141C2E; text-align: center; }
.contact-inner {
  max-width: 700px; margin: 0 auto;
  padding: 130px clamp(20px, 5vw, 64px);
}
.contact h2 {
  font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: clamp(26px, 3.4vw, 36px); color: #EDE8DD; margin-bottom: 24px;
}
.contact p { font-size: 16px; color: #A8A29A; margin-bottom: 40px; }
.contact-cta {
  display: inline-block; padding: 18px 40px;
  border: 1px solid #B8865A; color: #EDE8DD;
  font-size: 14px; letter-spacing: 0.05em;
  transition: background 0.25s, color 0.25s;
}
.contact-cta:hover { background: #B8865A; color: #0F1826; }
.contact-email {
  display: block; margin-top: 24px; font-size: 15px; color: #B8865A;
}

/* FOOTER */
footer {
  border-top: 1px solid rgba(184, 134, 90, 0.2);
  padding: 44px clamp(20px, 5vw, 64px);
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
}
footer div, footer a { font-size: 13px; color: #A8A29A; }
footer a:hover { color: #EDE8DD; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* Legal pages */
.legal-page {
  max-width: 800px; margin: 0 auto;
  padding: 140px clamp(20px, 5vw, 64px) 100px;
}
.legal-page h1 {
  font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px); color: #EDE8DD; margin-bottom: 40px;
}
.legal-page h2 {
  font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: 22px; color: #EDE8DD; margin: 40px 0 16px;
}
.legal-page h3 {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 15px; letter-spacing: 0.06em; color: #B8865A;
  margin: 32px 0 12px; text-transform: uppercase;
}
.legal-page p, .legal-page li {
  font-size: 15px; line-height: 1.75; color: #A8A29A; margin-bottom: 12px;
}
.legal-page ul { padding-left: 20px; }
.legal-back {
  display: inline-block; margin-bottom: 40px;
  font-size: 13px; letter-spacing: 0.04em; color: #B8865A;
}

/* SCROLL FADE-IN */
.fade-section {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-section.visible { opacity: 1; transform: translateY(0); }

/* MOBILE */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .situations-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 130px; padding-bottom: 70px; gap: 40px; }
  .about-inner, .digital-inner { gap: 40px; }
  .about-experience { border-left: none; padding-left: 0; border-top: 1px solid rgba(184, 134, 90, 0.35); padding-top: 40px; }
  .position { flex-direction: column; gap: 8px; }
  .position-year { width: auto; font-size: 26px; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-section { opacity: 1; transform: none; }
  .hero-line { width: 64px; }
}
