:root {
  --ink: #121417;
  --muted: #4b5563;
  --accent: #0f766e;
  --accent-2: #1f2937;
  --paper: #f8f5f1;
  --card: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Bookman Old Style", serif;
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.4;
}

body::before {
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, #c7f9cc 0%, rgba(199, 249, 204, 0) 70%);
}

body::after {
  bottom: -180px;
  right: -160px;
  background: radial-gradient(circle, #ffe8d6 0%, rgba(255, 232, 214, 0) 70%);
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.construction-banner {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px dashed #f59e0b;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.15);
  margin-bottom: 24px;
  overflow: hidden;
}

.construction-banner::after {
  content: "";
  position: absolute;
  inset: auto -40% 6px -40%;
  height: 6px;
  background: repeating-linear-gradient(90deg, #111827 0 16px, #fbbf24 16px 32px);
  transform: rotate(-1.5deg);
  opacity: 0.9;
}

.construction-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}

.construction-badge::before {
  content: "!";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f97316;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
  animation: pulse 2.2s ease-in-out infinite;
}

.construction-banner p {
  margin: 0;
  color: #7c2d12;
}

.construction-toggle {
  align-self: start;
  border: none;
  background: #111827;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.2);
}

.construction-toggle:hover {
  transform: translateY(-1px);
}

.construction-details {
  display: grid;
  gap: 10px;
}

.construction-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.15);
  overflow: hidden;
}

.construction-meter__fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #fbbf24);
  border-radius: inherit;
}

.construction-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.construction-chips span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #7c2d12;
}

.nav {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  color: var(--accent-2);
}

.nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-current {
  border-color: var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.print-button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--accent-2);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: var(--shadow);
}

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

header {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 24px;
}

.hero {
  background: var(--card);
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  animation: fadeUp 700ms ease-out;
  height: 100%;
}

h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.role {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 18px;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 15px;
  color: var(--muted);
}

.summary {
  margin-top: 20px;
  font-size: 16px;
  color: var(--accent-2);
}

.highlight {
  background: #f1f5f9;
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  animation: fadeUp 900ms ease-out;
  height: 100%;
}

.highlight h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.cards {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px 18px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  margin-top: 40px;
}

.main-col {
  display: grid;
  gap: 28px;
}

section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
  animation: fadeUp 900ms ease-out;
}

section h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.section-head {
  display: grid;
  gap: 8px;
}

.section-lead {
  color: var(--muted);
  margin-top: -6px;
  margin-bottom: 18px;
}

.experience-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.experience-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.experience-title {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 700;
}

.experience-title span {
  font-weight: 400;
  color: var(--muted);
}

ul {
  padding-left: 18px;
  margin: 12px 0 0;
}

li { margin-bottom: 8px; }

.aside section {
  margin-bottom: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 13px;
  margin: 4px 6px 0 0;
}

.pill.is-active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}


.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-list {
  display: grid;
  gap: 12px;
  width: 100%;
}

.project-tab {
  width: 100%;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  min-height: 140px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--card);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
  font: inherit;
  color: inherit;
  appearance: none;
  align-items: stretch;
}

.project-tab[hidden] {
  display: none;
}

.project-tab:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.project-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.project-tab.is-active {
  border-color: var(--accent);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.project-tab__title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}

.project-tab__title span {
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.project-tab__summary {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.project-tab__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #e2e8f0;
  display: block;
}

.project-tab__media {
  height: 100%;
  min-height: 140px;
}

.project-tab__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-tab__cta {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.project-panels {
  position: relative;
  display: none;
}

.notable-projects {
  margin: 12px 0 6px;
  color: var(--muted);
}

.projects-empty {
  color: var(--muted);
  font-size: 15px;
  margin-top: 10px;
}

.project-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.project-modal.is-open {
  display: flex;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.project-modal__dialog {
  position: relative;
  max-width: min(960px, 92vw);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
  border: 1px solid var(--line);
  z-index: 1;
}

.project-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}

.project-modal__content .project-panel {
  display: block;
  padding: 0;
  border: none;
  box-shadow: none;
}

.project-modal__content .project-panel img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
}

.link-button {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}

.project-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px 24px;
  box-shadow: var(--shadow);
  background: var(--card);
  display: none;
}

.project-panel[hidden] {
  display: none;
}

.project-panel.is-active {
  display: block;
  animation: fadeUp 280ms ease-out;
}

.project-panel img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.project-panel h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.project-panel__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.project-panel__meta h4 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}

.project-panel__meta ul {
  margin: 0;
  padding-left: 18px;
}

.project-panel__gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 18px;
}

.project-panel__gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #e2e8f0;
}

.project-panel__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  margin-top: 16px;
}

.cta:hover {
  background: var(--accent);
  color: #ffffff;
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@media (max-width: 900px) {
  header { grid-template-columns: 1fr; }
  main { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page { padding: 32px 18px 60px; }
  h1 { font-size: 34px; }
  .print-button { width: 100%; justify-content: center; }
  .project-panel__meta { grid-template-columns: 1fr; }
  .project-tab { grid-template-columns: 1fr; }
  .project-tab__media { min-height: 160px; }
  .project-modal__dialog { padding: 20px; }
  .project-modal__close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

@media print {
  body { background: #ffffff; }
  body::before, body::after, .print-button, .nav { display: none; }
  .page { padding: 0; }
  section, .hero, .highlight { box-shadow: none; border-color: #d1d5db; }
  a { color: inherit; }
}
