:root {
  color-scheme: light;
  --bg: #f7f3ee;
  --ink: #15130f;
  --muted: #6c645b;
  --accent: #c46a4d;
  --accent-dark: #8f4934;
  --card: #ffffff;
  --line: rgba(21, 19, 15, 0.1);
  --shadow: 0 20px 50px rgba(21, 19, 15, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff2e6, var(--bg) 45%);
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  padding: 48px 10vw 80px;
  background: linear-gradient(120deg, #fff5ea 0%, #f3ebe2 60%, #e5ddd3 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: rgba(196, 106, 77, 0.12);
  border-radius: 50%;
  top: -120px;
  right: -120px;
  pointer-events: none;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.links {
  display: flex;
  gap: 22px;
  font-weight: 500;
  color: var(--muted);
}

.lang-toggle {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.lang-toggle button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.lang-toggle button.active {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.lang-section {
  display: none !important;
}

.lang-section.active {
  display: block !important;
}

.hero-content {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", serif;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1.08;
  margin: 12px 0 20px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.cta {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.button {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.ghost {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-card {
  background: var(--card);
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 160px;
  max-height: 160px;
  object-fit: cover;
  border-radius: 16px;
  margin: 16px 0 12px;
  border: 1px solid var(--line);
  display: block;
}


.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.card-header,
.card-footer {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.status {
  color: var(--accent-dark);
}

main {
  padding: 80px 10vw;
  display: grid;
  gap: 80px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: center;
}

.split p {
  color: var(--muted);
  line-height: 1.7;
}

.tag-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-row span,
.meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f2e7dc;
  color: #7a4b3d;
  font-weight: 600;
  font-size: 0.8rem;
}

.callout {
  background: #fff7f0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.grid h2 {
  margin-bottom: 24px;
}

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

.cards article {
  background: var(--card);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cards span {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--accent-dark);
}

.profiles {
  background: #f5ede3;
  padding: 40px;
  border-radius: 26px;
}

.portfolio {
  background: #fff;
  border-radius: 26px;
  border: 1px solid var(--line);
  padding: 32px;
  display: grid;
  gap: 16px;
}

.portfolio-callout {
  background: #fff;
  border-radius: 26px;
  border: 1px solid var(--line);
  padding: 28px;
  display: grid;
  gap: 14px;
}

.portfolio-page {
  padding: 40px 10vw 80px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.portfolio-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: grid;
}

.portfolio-card img {
  width: 100%;
  height: 180px !important;
  max-height: 180px !important;
  object-fit: cover;
  display: block;
}

.portfolio-card img[loading="lazy"] {
  height: 180px !important;
  max-height: 180px !important;
}

.portfolio-meta {
  padding: 14px 16px 18px;
}

.portfolio-meta h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.portfolio-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.portfolio-empty {
  color: var(--muted);
  background: #faf6f1;
  border: 1px dashed var(--line);
  padding: 16px;
  border-radius: 16px;
}

.portfolio-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 19, 15, 0.85);
  display: block;
  padding: 24px;
  z-index: 999;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.portfolio-overlay.is-open {
  opacity: 1;
  transform: scale(1);
}

.portfolio-overlay.is-closing {
  opacity: 0;
  transform: scale(0.98);
}

.portfolio-overlay img {
  width: min(1000px, 90vw);
  height: auto;
  max-height: 75vh;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}


.portfolio-zoom {
  position: fixed;
  z-index: 1000;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  object-fit: contain;
  transition: all 220ms ease;
}

.portfolio-zoom.is-open {
  object-fit: contain;
}


.no-scroll {
  overflow: hidden;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.profile-card {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.role {
  color: var(--accent-dark);
  font-weight: 600;
}

.meta {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.contact {
  text-align: center;
}

.contact p {
  color: var(--muted);
}

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

.contact-grid div {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

footer {
  padding: 32px 10vw 48px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .split,
  .cards,
  .profile-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .links {
    display: none;
  }
}
