/* ---------- Reset & variables ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --paper: #fbfafd;
  --paper-soft: #f5f3fa;
  --surface: #ffffff;
  --line: #e4ebf2;
  --ink: #23282f;
  --ink-dim: #6b7280;
  --accent: #abc2dd;
  --accent-deep: #8aa6c8;
  --accent-pale: #eef3f9;
  --rose: #dbade3;
  --rose-deep: #c48bd0;
  --rose-pale: #f8f0f9;
  --gradient: linear-gradient(120deg, var(--accent), var(--rose) 65%, var(--accent-deep));
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 30px 70px -30px rgba(35, 40, 47, 0.16);
  --ff-display: 'Playfair Display', 'Georgia', serif;
  --ff-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background:
    radial-gradient(1000px circle at 12% -8%, rgba(171,194,221,0.4), transparent 60%),
    radial-gradient(900px circle at 92% 26%, rgba(219,173,227,0.32), transparent 60%),
    radial-gradient(850px circle at 45% 115%, rgba(171,194,221,0.28), transparent 60%),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 16px;
}
.section-tag--rose { color: var(--rose-deep); }

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: rgba(138, 166, 200, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(111, 143, 181, 0.9);
  color: var(--paper);
  box-shadow: 0 14px 30px -12px rgba(138, 166, 200, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: rgba(121, 154, 192, 0.88);
  border-color: rgba(98, 132, 171, 0.95);
  box-shadow: 0 18px 36px -12px rgba(138, 166, 200, 0.65);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
}
.btn-ghost:hover { border-color: var(--accent-deep); background: var(--accent-pale); }

.btn-accent {
  background: rgba(138, 166, 200, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(111, 143, 181, 0.9);
  color: var(--paper);
  box-shadow: 0 14px 30px -12px rgba(138, 166, 200, 0.55);
}
.btn-accent:hover {
  transform: translateY(-2px);
  background: rgba(121, 154, 192, 0.88);
  border-color: rgba(98, 132, 171, 0.95);
  box-shadow: 0 18px 36px -12px rgba(138, 166, 200, 0.65);
}

.btn-small { padding: 11px 22px; font-size: 0.82rem; }

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(520px 400px ellipse at var(--x, 50%) var(--y, 30%), rgba(171,194,221,0.42), transparent 60%);
  filter: blur(100px);
  mix-blend-mode: multiply;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px -20px rgba(35,40,47,0.25);
}

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

.logo {
  display: flex;
  align-items: center;
}
.logo-horizontal {
  height: 60px;
  width: auto;
}

.nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
}
.nav-link {
  font-size: 0.92rem;
  color: var(--ink-dim);
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--accent-deep);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  z-index: 200;
}
.burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  background:
    radial-gradient(560px circle at 12% 18%, rgba(171,194,221,0.3), transparent 60%),
    radial-gradient(500px circle at 60% 95%, rgba(219,173,227,0.22), transparent 60%);
  filter: blur(20px);
}

.hero-columns {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.hero-photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-photo-blob {
  position: absolute;
  inset: -30%;
  background: var(--gradient);
  opacity: 0.5;
  filter: blur(60px);
  animation: blobMove 12s ease-in-out infinite alternate;
}
@keyframes blobMove {
  0% { transform: translate(-5%, -5%) scale(1); }
  100% { transform: translate(5%, 5%) scale(1.15); }
}
.hero-photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.05) brightness(1.03);
}
.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  mix-blend-mode: multiply;
  opacity: 0.16;
  pointer-events: none;
}

.hero-brand {
  text-align: center;
  margin-bottom: 56px;
}
.hero-brand-sub {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2.8vw, 2.4rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
  color: var(--ink);
}

.hero-text {
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--ink-dim);
  max-width: 560px;
  margin-bottom: 38px;
}
.hero-text + .hero-text {
  margin-top: -20px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 68px;
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--rose-deep);
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot {
  0% { transform: translate(-50%, 0); opacity: 1; }
  70% { transform: translate(-50%, 16px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Services ---------- */
.services { padding: 130px 0; position: relative; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 30%), rgba(171,194,221,0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card--rose::before {
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 30%), rgba(219,173,227,0.26), transparent 70%);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card--rose:hover { border-color: var(--rose); }
.card--rose .card-list li::before { background: var(--rose); }

.services-cta {
  text-align: center;
  margin-top: 50px;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-pale);
  color: var(--accent-deep);
  margin-bottom: 24px;
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon--rose { background: var(--rose-pale); color: var(--rose-deep); }

.card h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}
.card p {
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.card-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.89rem;
  color: var(--ink-dim);
  margin-bottom: 9px;
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Portfolio ---------- */
.portfolio { padding: 130px 0; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  grid-auto-flow: dense;
  gap: 22px;
  margin-top: 46px;
}

.portfolio-card--lg {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 45px -30px rgba(35, 40, 47, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.portfolio-media {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.portfolio-card:hover .portfolio-media img { transform: scale(1.06); }

/* ---------- Contact ---------- */
.contact { padding: 130px 0; }

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact-text { color: var(--ink-dim); font-weight: 300; margin-bottom: 36px; max-width: 440px; }

.contact-details { display: flex; flex-direction: column; gap: 16px; margin-bottom: 34px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.96rem;
  color: var(--ink-dim);
  transition: color 0.2s ease;
}
a.contact-item:hover { color: var(--ink); }
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--accent-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.socials { display: flex; gap: 12px; }
.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-3px);
}

.contact-visual-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(1.05);
}
.contact-visual-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  mix-blend-mode: multiply;
  opacity: 0.14;
  pointer-events: none;
}
.contact-visual-panel {
  margin-top: 28px;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-inner p { color: var(--ink-dim); font-size: 0.84rem; }
.back-top {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.back-top:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .contact-inner { grid-template-columns: 1fr; }

  .hero-columns { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-photo-frame { max-width: 300px; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .burger { display: flex; }

  .nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--paper);
    border-left: 1px solid var(--line);
    padding: 100px 32px 40px;
    gap: 26px;
    z-index: 150;
    box-shadow: -20px 0 60px rgba(35,40,47,0.12);
  }
  .nav.mobile-open .nav-link { font-size: 1.1rem; }

  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .portfolio-card--lg { grid-column: span 1; grid-row: span 1; }
  .hero-brand-sub { white-space: normal; }

  .contact-visual-media { aspect-ratio: 3 / 4; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero { padding-top: 120px; }
  .card { padding: 28px 22px; }
}

/* Overlay behind mobile menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,40,47,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 140;
}
.nav-overlay.show { opacity: 1; pointer-events: auto; }
