:root {
  --paper: #f2f0e9;
  --ink: #171916;
  --muted: #676960;
  --line: rgba(23, 25, 22, 0.16);
  --blue: #173f5f;
  --blue-light: #dbe5e3;
  --gold: #d9a441;
  --green: #27704d;
  --white: #fffefa;
  --radius: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 84% 8%, rgba(217, 164, 65, 0.1), transparent 26rem), var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.page-shell {
  width: min(1500px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 18px 30px;
}

.identity {
  padding: 30px 6px 42px;
  border-bottom: 1px solid var(--line);
}

.identity-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
}

.avatar {
  width: 112px;
  height: 112px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 254, 250, 0.78);
  box-shadow: 0 14px 40px rgba(18, 31, 38, 0.16);
}

.hero-copy { min-width: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(39, 112, 77, 0.1);
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 15vw, 5.5rem);
  line-height: 0.78;
  letter-spacing: -0.08em;
  font-weight: 400;
}

.period { color: var(--gold); }

.tagline {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.social-links {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.content { padding-top: 18px; }
.project-grid { display: grid; gap: 12px; }

.project-card {
  min-height: 340px;
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.74);
  text-decoration: none;
}

.project-card::after {
  content: "";
  width: 210px;
  height: 210px;
  position: absolute;
  top: 69px;
  right: -60px;
  border-radius: 50%;
  background: rgba(23, 63, 95, 0.045);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-index { color: var(--muted); }

.project-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

.project-status i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
}

.project-card--building .project-status i { background: var(--gold); }
.project-card--soon .project-status i { background: #94968d; }

.project-mark {
  width: 84px;
  height: 84px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: flex-end;
  border-radius: 20px;
  font-family: Georgia, serif;
  font-size: 2.4rem;
  transform: rotate(4deg);
}

.mark-digmoro { color: var(--white); background: var(--blue); }
.mark-avatar { color: var(--blue); background: var(--blue-light); transform: rotate(-5deg); }
.mark-soon { color: var(--muted); background: transparent; border: 1px dashed var(--muted); border-radius: 50%; }
.project-copy { position: relative; z-index: 1; }

.project-copy h3 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.project-copy h3 span { color: var(--gold); font-family: sans-serif; font-size: 1rem; vertical-align: middle; }

.project-copy p {
  max-width: 310px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.52;
}

.qr-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.qr-overlay:target { visibility: visible; opacity: 1; }

.qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 16, 14, 0.66);
  backdrop-filter: blur(7px);
}

.qr-card {
  width: min(390px, 100%);
  position: relative;
  z-index: 1;
  padding: 24px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

.qr-card p {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.qr-card img { width: 100%; height: auto; display: block; border-radius: 12px; }
.qr-card span { display: block; margin-top: 16px; color: var(--muted); font-size: 0.82rem; text-align: center; }

.qr-close {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.45rem;
  line-height: 1;
  text-decoration: none;
}

@media (hover: hover) {
  .social-links a { transition: color 180ms ease, background-color 180ms ease, transform 180ms ease; }
  .social-links a:hover { color: var(--ink); background: rgba(23, 25, 22, 0.07); transform: translateY(-2px); }
  .project-card { transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
  a.project-card:hover { transform: translateY(-5px); border-color: rgba(23, 25, 22, 0.35); box-shadow: 0 24px 50px rgba(23, 25, 22, 0.08); }
}

@media (min-width: 700px) {
  .page-shell { padding: 36px 4vw 46px; }
  .identity { padding: 30px 0 42px; }
  .identity-inner { grid-template-columns: auto auto 1fr auto; gap: clamp(20px, 3vw, 52px); }
  .avatar { width: clamp(116px, 10vw, 160px); height: clamp(116px, 10vw, 160px); }
  .hero-copy { display: grid; align-content: center; }
  h1 { font-size: clamp(4.5rem, 7vw, 7.2rem); }
  .eyebrow { margin-bottom: 13px; }
  .tagline { grid-column: auto; margin: 0; font-size: clamp(1.2rem, 2vw, 1.7rem); }
  .social-links { grid-column: auto; justify-content: flex-end; margin-top: 0; }
  .content { padding-top: 22px; }
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-card { min-height: clamp(340px, 45vh, 500px); }
}

@media (min-width: 1000px) {
  .page-shell {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(285px, 24vw) 1fr;
    padding: 0;
  }

  .identity {
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    padding: 5.5vh 3vw;
    border-bottom: 0;
  }

  .identity-inner {
    width: 100%;
    display: block;
  }

  .avatar {
    width: clamp(138px, 11vw, 185px);
    height: clamp(138px, 11vw, 185px);
    margin-bottom: 3.5vh;
  }

  .hero-copy { display: block; }
  h1 { font-size: clamp(4.8rem, 7vw, 7.4rem); }

  .tagline {
    margin-top: 3.5vh;
    font-size: clamp(1.12rem, 1.4vw, 1.42rem);
  }

  .social-links {
    justify-content: flex-start;
    margin-top: 4vh;
  }

  .content { padding: 5.5vh 4vw 32px; }

  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card { min-height: 40vh; }
}

@media (min-width: 1540px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
