:root {
  --bg: #f3efe8;
  --bg-strong: #e7e0d5;
  --panel: rgba(255, 255, 255, 0.62);
  --panel-strong: rgba(255, 255, 255, 0.76);
  --text: #171612;
  --muted: rgba(23, 22, 18, 0.72);
  --line: rgba(23, 22, 18, 0.1);
  --shadow: 0 20px 48px rgba(13, 16, 21, 0.08);
  --accent: #2d3f4f;
  --accent-strong: #5d6d7a;
  --accent-warm: #b28b60;
  --max-width: 1200px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(93, 109, 122, 0.08), transparent 22%),
    linear-gradient(180deg, #f3efe8 0%, #f7f3ee 100%);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

body.modal-open {
  overflow: hidden;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.section-shell {
  padding: 86px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(244, 239, 232, 0.78);
  border-bottom: 1px solid rgba(23, 22, 18, 0.08);
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.topbar {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity var(--transition);
}

.brand-mark:hover,
.brand-mark:focus-visible {
  opacity: 0.75;
}

main {
  display: block;
}
.nav-spacer {
  width: 78px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition: opacity var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 0.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(23, 22, 18, 0.12);
  background: #181614;
  color: #f7f4ef;
  font-weight: 600;
  box-shadow: 0 12px 22px rgba(24, 22, 20, 0.12);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(24, 22, 20, 0.16);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(23, 22, 18, 0.12);
  color: var(--text);
}

.button--small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  padding-top: 68px;
  min-height: 76vh;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.77rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1,
.section-heading h2,
.site-footer h2 {
  margin: 0;
  letter-spacing: -0.08em;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(3.2rem, 6vw, 6rem);
  max-width: 660px;
  letter-spacing: -0.08em;
}

.lede {
  margin: 32px 0 0;
  max-width: 620px;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-meta {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-meta li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-card {
  position: absolute;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.visual-card--primary {
  width: min(440px, 92%);
  height: 430px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.82),
    rgba(230, 235, 240, 0.8) 42%,
    rgba(220, 228, 233, 0.82) 100%
  );
  border: 1px solid rgba(23, 22, 18, 0.08);
  overflow: hidden;
  transform: rotate(-8deg) translateY(8px);
}

.visual-card--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(153, 170, 178, 0.28),
      transparent 32%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(89, 100, 109, 0.2),
      transparent 28%
    );
}

.visual-window {
  position: absolute;
  inset: 28px 26px 64px;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(17, 21, 25, 0.98),
    rgba(25, 30, 35, 0.92)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 60px rgba(15, 19, 24, 0.2);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot--red {
  background: #d98a75;
}
.dot--amber {
  background: #d8b76d;
}
.dot--green {
  background: #88a990;
}

.window-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  padding: 18px 18px 16px;
  color: rgba(245, 242, 238, 0.92);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.mini-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0;
}

.mini-brand {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f3efe8;
  font-weight: 700;
}

.mini-nav {
  display: flex;
  gap: 12px;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(220, 227, 234, 0.72);
}

.mini-hero-copy {
  display: grid;
  gap: 8px;
}

.mini-hero-copy p {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(214, 223, 232, 0.78);
}

.mini-hero-copy h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.1vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
  color: #f5f1ea;
  max-width: 11ch;
  font-weight: 700;
}

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

.mini-card {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-card span {
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(214, 223, 232, 0.72);
}

.mini-card strong {
  font-size: 1.02rem;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: #f5f2ee;
}

.mini-card--soft {
  background: rgba(255, 255, 255, 0.05);
}

.mini-card--dark {
  background: linear-gradient(
    135deg,
    rgba(85, 101, 114, 0.6),
    rgba(38, 47, 54, 0.82)
  );
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 2px;
}

.mini-stats div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-stats strong {
  font-size: 0.88rem;
  letter-spacing: -0.02em;
  color: #f5f2ee;
}

.mini-stats span {
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(214, 223, 232, 0.72);
}

.visual-label {
  position: absolute;
  top: 22px;
  left: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(23, 22, 18, 0.08);
  border-radius: 999px;
  color: rgba(23, 22, 18, 0.8);
  backdrop-filter: blur(10px);
}

.visual-grid {
  position: absolute;
  inset: 8% 12%;
  background-image:
    linear-gradient(rgba(31, 41, 55, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 55, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.8;
  mask-image: radial-gradient(circle at center, black 42%, transparent 88%);
}

.visual-badge {
  position: absolute;
  right: 20px;
  bottom: 18px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(17, 21, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 242, 238, 0.9);
}

.visual-card--detail {
  width: 230px;
  right: 24px;
  bottom: 26px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 22, 18, 0.08);
  transform: rotate(8deg);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  box-shadow: 0 26px 44px rgba(17, 20, 24, 0.08);
}

.visual-card--detail span {
  display: block;
  text-align: center;
}

.about,
.skills,
.projects,
.site-footer {
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.site-footer h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  max-width: 760px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.about-story {
  display: grid;
  gap: 18px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 16px 40px rgba(13, 16, 21, 0.04);
}

.about-story p {
  margin: 0;
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  line-height: 1.8;
  color: var(--muted);
}

.about-stack {
  display: grid;
  gap: 18px;
}

.about-panel {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 30px rgba(13, 16, 21, 0.04);
}

.meta-label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.about-panel li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.about-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

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

.skill-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.skill-card h3 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.05em;
}

.skill-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.skill-card li {
  position: relative;
  padding-left: 18px;
}

.skill-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(32, 27, 27, 0.7);
}

.pricing {
  display: grid;
  gap: 32px;
}

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

.pricing-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
}

.pricing-card--featured {
  background: linear-gradient(135deg, #232b31, #181f24 54%, #2a343b);
  color: #f7f4f1;
  border-color: rgba(23, 22, 18, 0.12);
}

.pricing-label {
  margin: 0 0 18px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.pricing-row {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
}

.price {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.price-small {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.price-note {
  font-size: 0.82rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: inherit;
  opacity: 0.92;
}

.customisation {
  display: grid;
  gap: 28px;
}

.customisation-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.sample-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.sample-label {
  margin: 0 0 18px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.font-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.font-sample {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.46);
}

.font-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.font-sample h3 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.font-sample p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.font-sample--editorial h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.font-sample--modern h3 {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.font-sample--tech h3 {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
}

.font-sample--soft h3 {
  font-family: "Palatino Linotype", "Book Antiqua", serif;
}

.palette-grid {
  display: grid;
  gap: 16px;
}

.palette-set {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.palette-swatch {
  display: block;
  height: 84px;
  border-radius: 14px;
  border: 1px solid rgba(23, 22, 18, 0.08);
}

.palette-swatch--one {
  background: #ece6d9;
}
.palette-swatch--two {
  background: #c3c6bf;
}
.palette-swatch--three {
  background: #879681;
}
.palette-swatch--four {
  background: #3b3b3b;
}
.palette-swatch--five {
  background: #2b6777;
}
.palette-swatch--six {
  background: #c8d8e4;
}
.palette-swatch--seven {
  background: #f2f2f2;
}
.palette-swatch--eight {
  background: #ffffff;
}
.palette-swatch--nine {
  background: #e8e3d9;
}
.palette-swatch--ten {
  background: #a6b2b5;
}
.palette-swatch--eleven {
  background: #b87458;
}
.palette-swatch--twelve {
  background: #464646;
}

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

.site-footer {
  display: grid;
  gap: 36px;
  padding-bottom: 28px;
}

.footer-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.contact-form {
  width: 100%;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 22, 18, 0.1);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-legal,
.footer-contact {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: var(--muted);
  transition: opacity var(--transition);
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  opacity: 0.75;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(32, 27, 27, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(23, 22, 18, 0.7) 50%),
    linear-gradient(135deg, rgba(23, 22, 18, 0.7) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(32, 27, 27, 0.08);
  outline-offset: 1px;
}

.contact-meta {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 8px;
}

.contact-meta a {
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.5;
}

.legal-page {
  padding: 72px 0 88px;
}

.legal-content {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 3vw, 42px);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
  margin-top: 0;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.legal-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 12px;
}

.legal-content h2 {
  font-size: clamp(1.5rem, 2.3vw, 2.4rem);
  margin: 30px 0 12px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-content .meta {
  margin-bottom: 28px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-card {
  --project-accent: #b23d3d;
  --project-base: rgba(255, 255, 255, 0.56);
  display: flex;
  flex-direction: column;
  background: var(--project-base);
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(26, 22, 22, 0.12);
}

.project-card__media {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.08)),
    var(--project-accent);
  color: #f4efe9;
  border-bottom: none;
}

.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.7;
}

.project-card__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__placeholder {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.project-card__status {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.project-card__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 22px 20px;
}

.project-card__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-card h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  letter-spacing: -0.06em;
}

.project-card__summary {
  margin: 0;
  color: var(--muted);
}

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

.tag-list span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(32, 27, 27, 0.04);
  border: 1px solid rgba(32, 27, 27, 0.08);
  font-size: 0.76rem;
  color: var(--muted);
}

.project-card__actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.project-link,
.project-details {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(32, 27, 27, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.92rem;
}

.project-link {
  background: #171313;
  color: #f5f1ee;
}

.project-link.is-disabled {
  background: rgba(32, 27, 27, 0.05);
  color: rgba(32, 27, 27, 0.56);
  border-color: rgba(32, 27, 27, 0.12);
  pointer-events: none;
}

.project-details {
  background: transparent;
  color: var(--text);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 99;
}

.modal.is-open {
  display: grid;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 9, 0.54);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 28px));
  max-height: min(90vh, 820px);
  overflow: auto;
  background: #f7f3ee;
  border: 1px solid rgba(32, 27, 27, 0.08);
  border-radius: 28px;
  box-shadow: 0 40px 80px rgba(19, 16, 16, 0.2);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal__media {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(26, 22, 22, 0.9),
    rgba(79, 54, 54, 0.9)
  );
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.modal__content {
  padding: 34px 28px 28px;
}

.modal__content h3 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 3vw, 3rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.modal__summary {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.04rem;
}

.modal__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.modal__meta p,
.modal__features {
  margin: 0;
  color: var(--muted);
}

.modal__features-wrap {
  margin-top: 12px;
}

.modal__features {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.modal__actions {
  margin-top: 22px;
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(32, 27, 27, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  z-index: 3;
}

@media (max-width: 900px) {
  .hero,
  .about-grid,
  .modal__panel,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .skill-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-top: 30px;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .section-shell {
    padding: 32px 0;
  }

  .visual-card--detail {
    right: 10px;
    bottom: 12px;
  }

  .project-card__content {
    padding: 20px 18px 18px;
  }

  .project-card__actions {
    flex-direction: column;
  }

  .project-link,
  .project-details {
    width: 100%;
  }

  .modal__content {
    padding: 26px 18px 22px;
  }
}
