

:root {
  --bg: #f7f2ec;
  --bg-soft: rgba(255, 255, 255, 0.52);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --text: #181411;
  --muted: #64584d;
  --line: rgba(24, 20, 17, 0.1);
  --accent: #8c6a4a;
  --accent-soft: #b99674;
  --accent-deep: #3b2c23;
  --shadow: 0 24px 70px rgba(44, 30, 19, 0.1);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
  --section-gap: clamp(5rem, 8vw, 8.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(185, 150, 116, 0.18), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(59, 44, 35, 0.08), transparent 24%),
    linear-gradient(180deg, #fbf8f3 0%, #f6f1eb 46%, #f3ede6 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  filter: blur(18px);
}

.page-shell::before {
  width: 18rem;
  height: 18rem;
  top: 5rem;
  left: -5rem;
  background: rgba(185, 150, 116, 0.12);
}

.page-shell::after {
  width: 22rem;
  height: 22rem;
  right: -6rem;
  top: 32rem;
  background: rgba(59, 44, 35, 0.08);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(247, 242, 236, 0.86), rgba(247, 242, 236, 0.58));
  border-bottom: 1px solid rgba(24, 20, 17, 0.06);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(24, 20, 17, 0.06);
  box-shadow: 0 8px 26px rgba(17, 17, 17, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-deep), #1f1712);
  color: #f4ede4;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-text strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.12em;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 220ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

section {
  padding: var(--section-gap) 0;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(24, 20, 17, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading h2,
.hero h1 {
  margin: 1rem 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
}

.section-heading p,
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.hero {
  min-height: calc(100vh - 6rem);
  display: grid;
  place-items: center;
  padding-top: clamp(4rem, 10vw, 7rem);
}

.hero-panel {
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: calc(var(--radius-xl) + 6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.54));
  border: 1px solid rgba(24, 20, 17, 0.08);
  box-shadow: var(--shadow);
  text-align: center;
}

.hero h1 {
  font-size: clamp(4.4rem, 13vw, 8.8rem);
}

.hero .lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 42rem;
  margin: 0 auto;
}

.hero-copy {
  max-width: 50rem;
  margin: 1.5rem auto 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.pill {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(24, 20, 17, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-deep), #5b4334);
  color: #fff8f2;
  box-shadow: 0 18px 34px rgba(59, 44, 35, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(24, 20, 17, 0.1);
  color: var(--text);
}

.about-grid,
.services-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.about-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(24, 20, 17, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 2.5vw, 2rem);
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 0 0 1rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.about-highlights .mini {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(24, 20, 17, 0.06);
}

.about-highlights strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.portrait {
  min-height: 28rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(59, 44, 35, 0.88), rgba(140, 106, 74, 0.7)),
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 1.4rem;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.portrait-figure {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.portrait-figure .circle {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  margin: 0 auto 1.2rem;
}

.portrait-figure p {
  max-width: 16rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
}

.skills-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}

.skill-list {
  display: grid;
  gap: 1rem;
}

.skill-item {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(24, 20, 17, 0.06);
}

.skill-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.progress {
  height: 0.62rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(24, 20, 17, 0.08);
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent-deep));
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-content: start;
}

.tag {
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(24, 20, 17, 0.08);
  color: var(--text);
  transition: transform 220ms ease, border-color 220ms ease;
}

.tag:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 106, 74, 0.34);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-thumb {
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius-lg) - 2px);
  position: relative;
  overflow: hidden;
  background: #d9d1c7;
}

.project-thumb::before,
.project-thumb::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  pointer-events: none;
}

.project-thumb::before {
  width: 12rem;
  height: 12rem;
  top: -4rem;
  right: -3rem;
}

.project-thumb::after {
  width: 6rem;
  height: 6rem;
  bottom: 1rem;
  left: 1rem;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-overlay {
  position: absolute;
  inset: auto 1.1rem 1.1rem 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-deep);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(24, 20, 17, 0.1);
  font-size: 0.9rem;
  font-weight: 600;
}

.project-overlay.dark {
  color: var(--accent-deep);
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1.2rem;
}

.project-body h3,
.service-card h3,
.contact-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.project-body p,
.service-card p,
.contact-card p,
.contact-card li {
  margin: 0;
  color: var(--muted);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  color: var(--accent-deep);
  font-weight: 600;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  position: relative;
}

.service-price {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(59, 44, 35, 0.08);
  color: var(--accent-deep);
  font-weight: 600;
}

.service-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.service-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.socials {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(24, 20, 17, 0.08);
  transition: transform 220ms ease, border-color 220ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 106, 74, 0.34);
}

.contact-form {
  display: grid;
  gap: 0.95rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(24, 20, 17, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(140, 106, 74, 0.55);
  box-shadow: 0 0 0 4px rgba(185, 150, 116, 0.12);
}

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(24, 20, 17, 0.08);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .about-grid,
  .skills-wrap,
  .contact-grid,
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .header-bar {
    border-radius: 24px;
    justify-content: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 22vw, 5.6rem);
  }

  .hero-panel,
  .card {
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
