@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  --font-heading: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --background: #ffffff;
  --foreground: #1c1815;
  --muted: #f4f2f1;
  --muted-foreground: #776f6a;
  --border: #e9e5e2;
  --card: #ffffff;
  --accent: #ebe7e4;
  --secondary: #f4f2f1;
  --shadow: 0 18px 60px rgba(28, 24, 21, .09);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

h1, h2, h3, h4 { font-family: var(--font-heading); letter-spacing: -0.02em; text-wrap: balance; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.desktop-nav { display: flex; gap: 30px; align-items: center; }
.desktop-nav a { color: var(--muted-foreground); font-weight: 700; font-size: .95rem; transition: .2s; }
.desktop-nav a.active, .desktop-nav a:hover { color: var(--foreground); }

.main { min-height: 100vh; padding-top: 92px; padding-bottom: 60px; }
.center { text-align: center; }
.page-title { font-size: clamp(3rem, 6vw, 5.6rem); line-height: .95; margin: 22px 0 16px; }
.page-subtitle { color: var(--muted-foreground); font-size: 1.1rem; max-width: 660px; margin: 0 auto; line-height: 1.7; }

.hero {
  min-height: 100dvh; position: relative; display: grid; place-items: center; overflow: hidden; margin-top: -92px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.62), rgba(0,0,0,.38), rgba(0,0,0,.72)); }
.hero-content { position: relative; z-index: 2; color: #fff; text-align: center; padding: 120px 16px 80px; max-width: 1040px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 6.2rem); line-height: .95; margin: 0 0 24px; }
.hero p { font-size: clamp(1rem, 2vw, 1.35rem); opacity: .9; max-width: 680px; margin: 0 auto 38px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-actions a { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; padding: 13px 18px; border-radius: 999px; backdrop-filter: blur(10px); font-weight: 700; transition: .2s; }
.hero-actions a:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }

.filter-wrap { display: grid; gap: 16px; margin: 44px auto; max-width: 980px; }
.profile-filter { width: 100%; text-align: center; background: var(--foreground); color: var(--background); padding: 25px; border-radius: 18px; font-family: var(--font-heading); font-size: clamp(1.25rem, 2.8vw, 2rem); text-transform: uppercase; letter-spacing: .18em; transition: .2s; }
.profile-filter:hover { opacity: .92; transform: scale(.995); }
.filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.filter-link { padding: 17px 12px; text-align: center; border: 1px solid var(--border); border-radius: 14px; font-weight: 800; color: var(--muted-foreground); transition: .2s; }
.filter-link.active, .filter-link:hover { background: var(--foreground); color: var(--background); border-color: var(--foreground); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--card); box-shadow: 0 6px 22px rgba(28,24,21,.06); min-height: 420px; }
.portfolio-card .image { aspect-ratio: 3/4; overflow: hidden; height: 100%; }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.portfolio-card:hover img { transform: scale(1.08); }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.35), transparent); opacity: 0; transition: .28s; }
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; color: #fff; }
.badge { display: inline-block; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.22); color: #fff; font-size: .78rem; font-weight: 800; backdrop-filter: blur(8px); margin-bottom: 10px; }
.portfolio-content h3 { margin: 0 0 7px; font-size: 1.35rem; }
.portfolio-content p { margin: 0; color: rgba(255,255,255,.82); line-height: 1.5; }
.empty-state { text-align: center; color: var(--muted-foreground); padding: 70px 16px; font-size: 1.1rem; }

.marquee { width: 100%; overflow: hidden; padding: 42px 0; background: var(--background); border-block: 1px solid var(--border); margin: 44px 0; white-space: nowrap; }
.marquee-track { display: inline-block; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-heading); font-size: clamp(3rem, 7vw, 4.8rem); font-weight: 900; text-transform: uppercase; margin: 0 22px; letter-spacing: .05em; }
.marquee .solid { color: var(--foreground); -webkit-text-stroke: 2px var(--background); filter: drop-shadow(0 4px 6px rgba(0,0,0,.15)); }
.marquee .hollow { color: transparent; -webkit-text-stroke: 2px var(--foreground); }
.marquee .dot { color: rgba(28,24,21,.18); font-family: var(--font-body); font-size: 2rem; vertical-align: middle; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.profile-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 70px; align-items: start; }
.back-link { display: inline-flex; gap: 8px; color: var(--muted-foreground); font-weight: 800; margin: 8px 0 34px; }
.profile-photo { aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: var(--muted); position: sticky; top: 95px; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.38), transparent); }
.profile-name { font-size: clamp(4rem, 8vw, 8rem); line-height: .9; margin: 0 0 26px; }
.profile-copy .lead { color: var(--muted-foreground); font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.55; font-weight: 300; }
.profile-copy p { line-height: 1.75; color: rgba(28,24,21,.8); }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 42px 0; }
.fact-card { background: var(--muted); border-radius: var(--radius); padding: 30px; }
.fact-card h3 { margin: 0 0 22px; font-size: 1.65rem; }
.fact-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.fact-row span:first-child { color: var(--muted-foreground); }
.fact-row span:last-child { font-weight: 800; text-align: right; }
.action-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 13px 22px; font-weight: 900; background: #fff; color: var(--foreground); cursor: pointer; transition: .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.btn.primary { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.btn.block { width: 100%; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 52px; }
.panel { background: var(--card); border-radius: var(--radius); padding: 34px; box-shadow: 0 6px 24px rgba(28,24,21,.06); }
.panel.muted { background: var(--muted); box-shadow: none; }
.form-stack { display: grid; gap: 18px; }
label { display: grid; gap: 8px; font-weight: 800; }
input, textarea, select { width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 13px; background: #fff; color: var(--foreground); outline: none; }
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--foreground); box-shadow: 0 0 0 3px rgba(28,24,21,.08); }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin: 22px 0; }
.icon-box { width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.icon-box svg { width: 21px; height: 21px; }
.notice { padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 800; }
.notice.success { background: #eaf8ef; color: #166534; }
.notice.danger { background: #fdecec; color: #991b1b; }

.site-footer { background: var(--secondary); border-top: 1px solid var(--border); margin-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 46px 0; }
.footer-brand { font-weight: 900; font-size: 1.2rem; }
.footer-grid p, .footer-grid a, .copyright { color: rgba(28,24,21,.72); }
.footer-links { display: grid; gap: 10px; }
.socials { display: flex; gap: 16px; align-items: center; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(0,0,0,.07); padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; }

.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
.bottom-nav-inner { display: grid; grid-template-columns: 1fr 1fr; height: 68px; }
.bottom-nav a { display: grid; place-items: center; gap: 2px; color: var(--muted-foreground); font-size: .8rem; font-weight: 800; }
.bottom-nav a.active { color: var(--foreground); }
.bottom-nav svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .bottom-nav { display: block; }
  .main { padding-bottom: 95px; }
  .filter-grid, .portfolio-grid, .fact-grid, .contact-grid, .footer-grid, .profile-grid { grid-template-columns: 1fr; }
  .profile-photo { position: relative; top: 0; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 640px) {
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 24px; }
  .portfolio-card { min-height: 340px; }
}
