
:root {
  --bg: #f6f0ea;
  --paper: #fffaf6;
  --ink: #201718;
  --muted: #75686a;
  --wine: #6d263a;
  --wine-2: #8d4255;
  --gold: #bd9a68;
  --dark: #1b1718;
  --line: rgba(32, 23, 24, .12);
  --shadow: 0 28px 90px rgba(71, 39, 46, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 74px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 240, 234, .9);
  backdrop-filter: blur(16px);
}

.brand {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wine);
  color: white;
  font-weight: 700;
  letter-spacing: .04em;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  font-size: 14px;
  font-weight: 600;
}

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

.lang-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 9px 13px;
  font-weight: 700;
  cursor: pointer;
  justify-self: end;
  width: auto;
  min-width: 48px;
}

.hero {
  min-height: calc(100vh - 76px);
  padding: clamp(55px, 7vw, 105px) clamp(22px, 7vw, 110px);
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(30px, 7vw, 100px);
  align-items: center;
  overflow: hidden;
}

.eyebrow {
  display: inline-block;
  color: var(--wine);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .17em;
}

h1, h2, h3 { margin-top: 0; }

h1 {
  margin: 22px 0 28px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(70px, 10vw, 146px);
  line-height: .82;
  letter-spacing: -.045em;
}

h1 em {
  color: var(--wine);
  font-weight: 600;
}

.hero-text {
  max-width: 720px;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn.primary {
  color: white;
  background: var(--wine);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.35);
}

.btn.light {
  background: white;
  color: var(--wine);
}

.portrait-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 520px);
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 36px 36px 160px 36px;
  background: #d9c8bd;
  box-shadow: var(--shadow);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
  border-radius: inherit;
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.portrait-tag {
  position: absolute;
  left: -22px;
  bottom: 38px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--dark);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  box-shadow: 0 14px 38px rgba(0,0,0,.17);
}

.section {
  padding: clamp(72px, 8vw, 116px) clamp(22px, 7vw, 110px);
  border-top: 1px solid var(--line);
}

.about-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(30px, 7vw, 100px);
  align-items: start;
}

h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -.035em;
}

.about-copy p {
  margin-top: 0;
  font-size: clamp(20px, 2.3vw, 31px);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.pill-row span {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  font-weight: 600;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin: 12px 0 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-height: 365px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-card.dark {
  color: white;
  background:
    radial-gradient(circle at 80% 0%, rgba(141,66,85,.65), transparent 38%),
    var(--dark);
}

.project-index {
  margin-bottom: 34px;
  opacity: .5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
}

.project-card h3 {
  margin-bottom: 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  line-height: 1.05;
}

.project-card p {
  margin-top: 0;
  color: var(--muted);
}

.project-card.dark p { color: rgba(255,255,255,.7); }

.text-link {
  margin-top: auto;
  font-weight: 700;
}

.wordmark {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: .12em;
  color: #7b2441;
  margin-bottom: 18px;
}

.card-buttons {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-btn {
  padding: 10px 13px;
  border-radius: 999px;
  background: var(--wine);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.small-btn.outline {
  background: transparent;
  color: var(--wine);
  border: 1px solid rgba(109,38,58,.25);
}

.logo-card { justify-content: flex-start; }

.project-logo {
  object-fit: contain;
  object-position: left center;
  margin: 0 auto 16px 0;
}

.mareva-logo {
  width: 76%;
  height: 150px;
}

.alma-logo {
  width: 87%;
  height: 145px;
}

.mareva-card {
  background:
    radial-gradient(circle at 70% 20%, rgba(189,154,104,.16), transparent 38%),
    var(--paper);
}

.alma-card {
  background: #fff;
}

.vinted-card {
  background: #e9fbfb;
}

.vinted-mark {
  margin-bottom: 22px;
  color: #007782;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: .08em;
}

.social-card {
  background:
    linear-gradient(145deg, rgba(109,38,58,.06), rgba(189,154,104,.15)),
    var(--paper);
}

.collab-panel {
  padding: clamp(30px, 5vw, 62px);
  border-radius: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: end;
  color: white;
  background:
    radial-gradient(circle at 85% 10%, rgba(189,154,104,.25), transparent 25%),
    linear-gradient(135deg, #191516, #4f1c2a 70%, #6d263a);
}

.collab-panel .eyebrow { color: #d7b98d; }

.collab-panel h2 {
  margin: 12px 0 20px;
}

.collab-copy p {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255,255,255,.72);
  font-size: 18px;
}

.collab-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.collab-cta span {
  max-width: 280px;
  color: rgba(255,255,255,.5);
  font-size: 12px;
}

.section-heading.compact { margin-bottom: 30px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.contact-grid a {
  min-height: 120px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-grid span {
  color: var(--muted);
  font-size: 13px;
}

.contact-grid strong {
  overflow-wrap: anywhere;
}

footer {
  padding: 28px clamp(22px, 7vw, 110px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  nav { display: none; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    justify-self: start;
    width: min(100%, 580px);
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .collab-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header { grid-template-columns: auto 1fr; }
  .lang-toggle { justify-self: end; }
  .hero { padding-top: 42px; }

  h1 { font-size: clamp(68px, 23vw, 98px); }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn { width: 100%; }

  .portrait-tag {
    left: 14px;
    bottom: 18px;
  }

  .portrait-frame {
    border-radius: 28px 28px 100px 28px;
  }

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

  .project-card {
    min-height: 330px;
  }

  footer {
    flex-direction: column;
  }
}
