@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap");

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

body {
  margin: 0;
  min-height: 100vh;
  background: #f4f1eb;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
}

h1,
h2,
h3,
.dir-card h2,
.dir-card h3,
.dir-projects h2,
.dir-info-card h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

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

.dir-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 40px;
}

.topnav-wrap {
  position: fixed;
  inset: 14px 0 auto 0;
  display: flex;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
}

.topnav {
  pointer-events: auto;
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 12px 22px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.topnav .pill {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  padding: 9px 14px;
  border-radius: 12px;
}

.topnav .pill.active {
  background: rgba(255, 255, 255, 0.18);
}

.auth-cta {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 60;
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.dir-page-head {
  margin-bottom: 20px;
  padding: 0 4px;
}

.dir-page-head h1,
.dir-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.dir-page-head p,
.dir-hero p {
  margin: 0;
  max-width: 720px;
  color: #5b6472;
  font-size: 16px;
  line-height: 1.6;
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.dir-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dir-link,
.dir-card {
  display: block;
}

.dir-card h2,
.dir-card h3 {
  margin: 0 0 8px;
  padding: 0 18px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.dir-card p {
  margin: 0 0 12px;
  padding: 0 18px;
  color: #5b6472;
  line-height: 1.55;
}

.dir-card-media {
  height: 220px;
  overflow: hidden;
  background: #e5e7eb;
  margin-bottom: 16px;
}

.dir-card-media img,
.dir-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dir-meta {
  padding: 0 18px 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.dir-empty {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px 18px;
  color: #64748b;
}

.dir-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 28px;
}

.dir-hero-copy,
.dir-hero-media {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dir-hero-copy {
  padding: 28px;
}

.dir-hero-media {
  min-height: 320px;
}

.dir-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.dir-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dir-btn.alt {
  background: #e5e7eb;
  color: #111827;
}

.dir-projects h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.dir-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.dir-info-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dir-info-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.dir-info-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid #eef2f7;
}

.dir-info-line:first-of-type {
  border-top: none;
  padding-top: 0;
}

.dir-info-line span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.dir-info-line a,
.dir-info-line strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.dir-summary-list {
  display: grid;
  gap: 10px;
}

.dir-summary-link {
  display: block;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
  font-weight: 700;
}

@media (max-width: 900px) {
  .dir-shell {
    width: min(100% - 24px, 1200px);
    padding-top: 94px;
  }

  .dir-hero {
    grid-template-columns: 1fr;
  }

  .dir-info-grid {
    grid-template-columns: 1fr;
  }

  .topnav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
}
