:root {
  --bg: #f4efe8;
  --surface: rgba(255, 250, 245, 0.72);
  --surface-strong: #fffaf6;
  --ink: #1e1b18;
  --muted: #645b53;
  --accent: #bd4f2d;
  --accent-dark: #8a341a;
  --line: rgba(30, 27, 24, 0.1);
  --shadow: 0 22px 60px rgba(61, 36, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(189, 79, 45, 0.2), transparent 28%),
    radial-gradient(circle at right 15%, rgba(217, 176, 132, 0.3), transparent 24%),
    linear-gradient(180deg, #f6efe7 0%, #efe5d9 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header,
.site-footer,
.hero-section,
.about-card,
.service-card,
.portfolio-card,
.contact-form,
.legal-card,
.legal-page {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #db8a58);
  color: #fff;
  font-weight: 800;
}

.brand-text,
.footer-title {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a,
.footer-links a,
.back-link {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover,
.back-link:hover,
.legal-card a:hover {
  color: var(--accent-dark);
}

.section-grid,
.contact-layout,
.card-grid {
  display: grid;
  gap: 24px;
}

.hero-section {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  align-items: stretch;
  margin: 28px 0 56px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(255, 248, 242, 0.84), rgba(255, 255, 255, 0.54));
  box-shadow: var(--shadow);
}

.hero-copy h1,
.section-heading h2,
.legal-page h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 9vw, 5.8rem);
}

.hero-text,
.about-card p,
.service-card p,
.portfolio-card p,
.contact-form,
.legal-card,
.footer-copy,
.legal-page p,
.form-note {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 36rem;
  margin: 18px 0 0;
  font-size: 1.1rem;
}

.eyebrow,
.portfolio-label {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), #d98753);
  color: #fff;
  box-shadow: 0 16px 30px rgba(189, 79, 45, 0.24);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.hero-panel,
.legal-card ul {
  display: grid;
  gap: 16px;
}

.stat-card,
.about-card,
.service-card,
.portfolio-card,
.contact-form,
.legal-card,
.legal-page {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-card strong,
.service-card h3,
.portfolio-card h3,
.legal-card h3,
.section-heading h2 {
  display: block;
  margin: 0;
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.content-section {
  margin-bottom: 56px;
}

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

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 14ch;
}

.about-card {
  max-width: 840px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card h3,
.portfolio-card h3,
.legal-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.portfolio-card,
.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(30, 27, 24, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(189, 79, 45, 0.2);
  border-color: rgba(189, 79, 45, 0.45);
}

.form-note {
  margin: 0;
  font-size: 0.95rem;
}

.legal-card ul {
  padding-left: 18px;
  margin: 0;
}

.site-footer {
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 48px auto;
  background: rgba(255, 250, 245, 0.86);
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .hero-section,
  .card-grid,
  .portfolio-card,
  .contact-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Background art ─────────────────────────────────────────── */
.bg-art {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-laptop {
  position: absolute;
  top: 4vh;
  right: -60px;
  width: 560px;
  opacity: 0.07;
  animation: bg-laptop-float 9s ease-in-out infinite;
}

.bg-token {
  position: absolute;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  color: var(--accent);
}

.bg-token.t1 {
  top: 16%;
  left: 3%;
  font-size: 2.4rem;
  opacity: 0.09;
  animation: bg-float-1 7s ease-in-out infinite;
}

.bg-token.t2 {
  top: 50%;
  right: 4%;
  font-size: 2.8rem;
  opacity: 0.07;
  animation: bg-float-2 8.5s ease-in-out infinite;
}

.bg-token.t3 {
  bottom: 16%;
  left: 7%;
  font-size: 2rem;
  opacity: 0.08;
  animation: bg-float-3 9.5s ease-in-out infinite;
}

@keyframes bg-laptop-float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-22px) rotate(-5deg); }
}

@keyframes bg-float-1 {
  0%, 100% { transform: translateY(0) rotate(-18deg); }
  50% { transform: translateY(-14px) rotate(-18deg); }
}

@keyframes bg-float-2 {
  0%, 100% { transform: translateY(0) rotate(14deg); }
  50% { transform: translateY(-16px) rotate(14deg); }
}

@keyframes bg-float-3 {
  0%, 100% { transform: translateY(0) rotate(22deg); }
  50% { transform: translateY(-12px) rotate(22deg); }
}

@media (max-width: 960px) {
  .bg-laptop {
    width: 380px;
    opacity: 0.05;
    right: -40px;
  }

  .bg-token {
    font-size: 1.6rem !important;
    opacity: 0.06 !important;
  }
}

/* ── End background art ──────────────────────────────────────── */

@media (max-width: 640px) {
  .bg-art {
    display: none;
  }

  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .site-header,
  .hero-section,
  .stat-card,
  .about-card,
  .service-card,
  .portfolio-card,
  .contact-form,
  .legal-card,
  .site-footer,
  .legal-page {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .site-nav {
    gap: 12px;
  }

  .button {
    width: 100%;
  }
}