:root {
  --ink: #fffdf2;
  --muted: rgba(255, 253, 242, 0.78);
  --soft: rgba(255, 253, 242, 0.13);
  --card: rgba(8, 31, 12, 0.62);
  --card-hover: rgba(14, 58, 20, 0.74);
  --line: rgba(255, 253, 242, 0.22);
  --yellow: #ffd84d;
  --orange: #ff9f1c;
}

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

html, body { min-height: 100%; }

body {
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(rgba(0, 30, 7, 0.34), rgba(0, 18, 5, 0.70)),
    url("images/tealeaf-small.jpg") center / cover fixed no-repeat;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 18%, rgba(255,255,255,0.13), transparent 34%);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 44px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 62px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 34px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  animation: rise 0.65s ease forwards;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  line-height: 0.9;
  text-shadow: 0 3px 18px rgba(0,0,0,0.35);
}

.wordmark em {
  color: var(--yellow);
  font-style: italic;
}

.header-sub {
  font-size: 10px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.hero {
  position: relative;
  padding: 54px 0 44px;
  opacity: 0;
  animation: rise 0.65s ease 0.15s forwards;
}

.plumeria {
  position: absolute;
  top: 18px;
  right: 0;
  width: clamp(120px, 26vw, 210px);
  pointer-events: none;
  z-index: 2;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

h1 {
  max-width: 560px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 8vw, 70px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.42);
}

.intro-note {
  max-width: 460px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 0.65s ease 0.3s forwards;
}

.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.projects {
  display: grid;
  gap: 14px;
  opacity: 0;
  animation: rise 0.65s ease 0.42s forwards;
}

.project-card {
  display: block;
  padding: 26px 26px 22px;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(0,0,0,0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  border-color: rgba(255, 216, 77, 0.55);
}

.project-num {
  margin-bottom: 12px;
  color: var(--yellow);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.project-name {
  margin-bottom: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 600;
  line-height: 1;
}

.project-desc {
  max-width: 520px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.project-tag {
  padding: 5px 10px;
  border: 1px solid var(--soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-arrow {
  color: var(--yellow);
  font-size: 12px;
  letter-spacing: 0.06em;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 52px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 0.65s ease 0.55s forwards;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .page { width: min(100% - 30px, 760px); padding-top: 20px; }
  header { align-items: flex-start; flex-direction: column; padding-bottom: 26px; }
  .hero { padding-top: 42px; }
  .plumeria { right: -22px; top: 8px; width: 128px; opacity: 0.92; }
  h1 { max-width: 330px; }
  .project-card { padding: 22px 20px 20px; border-radius: 20px; }
  footer { flex-direction: column; align-items: flex-start; }
}
