:root {
  --ink: #171717;
  --muted: #6f6a62;
  --paper: #f5f0e8;
  --paper-soft: #fbf8f1;
  --charcoal: #111111;
  --gold: #b99a5b;
  --gold-light: #d6c28d;
  --line: rgba(185, 154, 91, 0.25);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 80% 0%, rgba(185,154,91,.16), transparent 34%), var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.page-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .045;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.prague-watermark {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34vh;
  z-index: -1;
  opacity: .08;
  color: #111;
  animation: skylineDrift 18s ease-in-out infinite alternate;
}
.prague-watermark svg { width: 100%; height: 100%; fill: currentColor; stroke: currentColor; stroke-width: 8; }
@keyframes skylineDrift { from { transform: translateY(12px) scale(1.02); } to { transform: translateY(-4px) scale(1.04); } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px 6vw;
  background: rgba(245, 240, 232, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 260px; max-width: 32vw; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.main-nav { display: flex; justify-content: center; gap: 30px; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; }
.main-nav a, .header-cta { text-decoration: none; }
.header-cta { border: 1px solid var(--gold); padding: 10px 16px; font-size: 14px; color: #5d4a22; }

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 6vw;
  align-items: center;
  padding: 70px 6vw 90px;
}
.eyebrow, .section-label { color: var(--gold); text-transform: uppercase; letter-spacing: .22em; font-size: 13px; font-weight: 600; }
h1, h2, h3 { font-family: inherit; line-height: 1.02; font-weight: 500; }
h1 { font-size: clamp(48px, 6.4vw, 92px); letter-spacing: -.065em; max-width: 920px; margin: 18px 0 24px; }
h2 { font-size: clamp(38px, 4.6vw, 68px); letter-spacing: -.055em; }
h3 { font-size: clamp(30px, 3.5vw, 52px); letter-spacing: -.045em; }
.hero-lead { max-width: 680px; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 34px 0; }
.button { border: 0; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 24px; text-decoration: none; font-weight: 600; letter-spacing: .02em; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.button:hover { transform: translateY(-2px); }
.primary { background: linear-gradient(135deg, #181818, #3a2e19); color: white; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.secondary { border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.35); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; }
.hero-meta span { border-left: 1px solid var(--line); padding-left: 12px; }

.hero-visual { position: relative; }
.portrait-frame { position: relative; padding: 16px; background: linear-gradient(145deg, rgba(255,255,255,.7), rgba(185,154,91,.22)); box-shadow: var(--shadow); overflow: hidden; }
.portrait-frame::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.55); z-index: 2; pointer-events: none; }
.portrait-frame img { width: 100%; height: min(70vh, 720px); object-fit: cover; object-position: center; filter: saturate(.92) contrast(1.03); }

section { padding: 105px 6vw; }
.profile-grid, .contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 6vw; align-items: start; }
.profile-grid { grid-template-columns: 1fr; max-width: 980px; }
.profile p, .contact-copy p { color: var(--muted); font-size: 18px; max-width: 780px; margin-top: 24px; }

.specializations { background: linear-gradient(135deg, #111, #1d1a14); color: white; position: relative; overflow: hidden; }
.specializations::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 10%, rgba(185,154,91,.18), transparent 34%); }
.specializations > * { position: relative; z-index: 1; }
.light { color: var(--gold-light); }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin: 20px 0 46px; }
.section-heading p { max-width: 360px; color: rgba(255,255,255,.62); }
.specialization-layout { display: grid; grid-template-columns: 360px 1fr; gap: 28px; }
.specialization-tabs { display: grid; gap: 14px; }
.spec-tab { text-align: left; padding: 22px; border: 1px solid rgba(214,194,141,.22); background: rgba(255,255,255,.035); color: rgba(255,255,255,.72); font: inherit; cursor: pointer; transition: .25s ease; }
.spec-tab:hover, .spec-tab.active { background: rgba(185,154,91,.16); color: white; border-color: rgba(214,194,141,.6); transform: translateX(6px); }
.spec-panel { min-height: 470px; padding: 48px; background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border: 1px solid rgba(214,194,141,.22); box-shadow: 0 30px 90px rgba(0,0,0,.28); transition: opacity .3s ease, transform .3s ease; }
.spec-panel.is-changing { opacity: 0; transform: translateY(10px); }
.spec-number { color: var(--gold-light); font-size: 13px; letter-spacing: .22em; margin-bottom: 34px; }
.spec-panel h3 { color: white; margin-bottom: 18px; }
#specIntro { color: var(--gold-light); font-size: 18px; margin-bottom: 22px; }
#specBody { color: rgba(255,255,255,.72); max-width: 860px; }

.statement { display: grid; grid-template-columns: .86fr 1.14fr; gap: 6vw; align-items: center; }
.statement-image { overflow: hidden; box-shadow: var(--shadow); }
.statement-image img { height: 690px; width: 100%; object-fit: cover; object-position: center top; transform: scale(1.02); }
.statement-copy p:last-child { color: var(--muted); margin-top: 26px; max-width: 650px; font-size: 18px; }

.contact { background: rgba(251,248,241,.82); }
.contact-details { display: grid; gap: 10px; margin-top: 34px; }
.contact-details a, .contact-details span { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.contact-form { display: grid; gap: 16px; padding: 34px; background: #111; color: white; box-shadow: var(--shadow); border: 1px solid rgba(214,194,141,.24); }
.contact-form label { display: grid; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-light); }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: white; padding: 15px 14px; font: inherit; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold-light); }
.contact-form textarea { resize: vertical; }
.contact-form .button { margin-top: 8px; background: linear-gradient(135deg, var(--gold), #8a6c31); }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 6vw; background: #0f0f0f; color: rgba(255,255,255,.7); font-size: 14px; }

.section-reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.section-reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr; text-align: center; }
  .brand, .main-nav { justify-content: center; }
  .header-cta { justify-self: center; }
  .hero, .profile-grid, .specialization-layout, .statement, .contact-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 16px; }
}
@media (max-width: 640px) {
  .brand img { width: 220px; max-width: 74vw; }
  .main-nav { gap: 14px; font-size: 12px; flex-wrap: wrap; }
  section, .hero { padding-left: 22px; padding-right: 22px; }
  .hero-actions { display: grid; }
  .portrait-frame img, .statement-image img { height: 520px; }
  .spec-panel { padding: 28px; }
  .site-footer { flex-direction: column; }
}
