:root {
  --navy-950: #071324;
  --navy-900: #0c1f38;
  --navy-800: #133056;
  --navy-700: #1c4476;
  --navy-600: #275b9b;
  --ice-200: #d5e3f2;
  --ice-100: #eaf1f8;
  --ice-50: #f4f8fc;
  --porcelain: #fcfdfe;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--porcelain);
  color: var(--navy-950);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.font-serif { font-family: var(--font-serif); }

.container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(252, 253, 254, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(213, 227, 242, 0.85);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-badge {
  width: 2.3rem; height: 2.3rem; border-radius: 999px;
  background: var(--navy-900); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.08em;
}
.brand-name { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.brand-sub { font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--navy-600); font-weight: 600; }

.nav-links { display: none; align-items: center; gap: 2rem; font-size: 0.875rem; font-weight: 500; }
.nav-links a:hover { color: var(--navy-700); }
@media (min-width: 768px) { .nav-links { display: flex; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border-radius: 999px; border: 1px solid transparent;
  padding: 0.65rem 1.35rem; font-size: 0.875rem; font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-white { background: #fff; color: var(--navy-950); }
.btn-white:hover { background: var(--ice-100); }
.btn-outline { background: #fff; color: var(--navy-900); border-color: var(--ice-200); }
.btn-outline:hover { background: var(--ice-50); }
.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.78rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.mobile-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: 1px solid var(--ice-200); background: #fff; color: var(--navy-900);
}
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--ice-200); background: #fff; padding: 1rem; }
.mobile-nav.open { display: flex; flex-direction: column; gap: 0.6rem; }
.mobile-nav a { padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-weight: 500; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.52; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(7,19,36,0.92), rgba(7,19,36,0.65) 55%, rgba(7,19,36,0.35)); }
.hero-content { position: relative; padding: 5.5rem 0; max-width: 680px; }
@media (min-width: 768px) { .hero-content { padding: 8rem 0; } }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--navy-600); }
.eyebrow-light {
  display: inline-block; padding: 0.3rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.1);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ice-100);
}
.hero h1 { font-family: var(--font-serif); font-size: clamp(2.5rem, 6vw, 4.3rem); font-weight: 500; line-height: 1.07; margin: 1.1rem 0 0; }
.hero p { margin: 1.25rem 0 0; font-size: 1.05rem; color: rgba(234,241,248,0.9); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-tint { background: rgba(244,248,252,0.85); border-top: 1px solid var(--ice-200); border-bottom: 1px solid var(--ice-200); }
.section-title { font-family: var(--font-serif); font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 500; margin: 0.35rem 0 0; line-height: 1.12; }

/* Pills & Grids */
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  border-radius: 999px; border: 1px solid var(--ice-200); background: #fff;
  padding: 0.45rem 1rem; font-size: 0.84rem; font-weight: 500; color: rgba(12,31,56,0.78);
}
.pill.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.span-2 { grid-column: span 1; }
@media (min-width: 640px) { .span-2 { grid-column: span 2; } }

/* Cards */
.card { background: #fff; border: 1px solid var(--ice-200); border-radius: 1rem; overflow: hidden; box-shadow: 0 1px 2px rgba(7,19,36,0.04); }
.card-pad { padding: 1.5rem; }
.work-card { position: relative; border-radius: 1rem; overflow: hidden; background: var(--navy-950); cursor: pointer; border: 1px solid var(--ice-200); content-visibility: auto; contain-intrinsic-size: 0 340px; }
.work-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.45s; }
.work-card.wide img { aspect-ratio: 16/9; }
.work-card:hover img { transform: scale(1.04); }
.work-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,19,36,0.82), rgba(7,19,36,0.12) 55%, transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.25rem; color: #fff; text-align: left; }
.work-badge { align-self: flex-start; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; background: rgba(255,255,255,0.18); padding: 0.18rem 0.6rem; border-radius: 999px; backdrop-filter: blur(4px); }
.work-title { font-family: var(--font-serif); font-size: 1.5rem; margin: 0.4rem 0 0.15rem; font-weight: 500; }
.work-meta { font-size: 0.76rem; color: rgba(234,241,248,0.88); }

/* Watermark */
.watermark-wrap { position: relative; overflow: hidden; background: var(--navy-950); }
.watermark-layer {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  background-image: repeating-linear-gradient(-30deg, transparent, transparent 48px, rgba(255,255,255,0.06) 48px, rgba(255,255,255,0.06) 49px);
}
.watermark-text {
  transform: rotate(-12deg); user-select: none;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(255,255,255,0.36); text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}

/* Forms */
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--navy-900); }
.input {
  width: 100%; border-radius: 0.75rem; border: 1px solid var(--ice-200);
  background: var(--porcelain); padding: 0.62rem 0.9rem; font-size: 0.88rem;
}
.input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(28,68,118,0.14); }
.honeypot { display: none !important; }

/* Native <dialog> modals & drawers (modern-web-guidance compliant) */
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(7, 19, 36, 0.72);
  backdrop-filter: blur(4px);
}
dialog.modal-center {
  margin: auto; padding: 0; border: 1px solid var(--ice-200); border-radius: 1rem;
  width: calc(100% - 1.5rem); max-width: 880px; max-height: 92dvh; overflow: hidden; background: #fff;
}
dialog[open].modal-center { display: flex; flex-direction: column; }
dialog.modal-drawer {
  margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--ice-200);
  width: 100%; max-width: 440px; height: 100dvh; max-height: 100dvh; background: #fff;
}
dialog[open].modal-drawer { display: flex; flex-direction: column; }

.toast {
  position: fixed; right: 1rem; bottom: 1.25rem; z-index: 60;
  background: var(--navy-950); color: #fff; padding: 0.7rem 1.2rem;
  border-radius: 999px; font-size: 0.8rem; font-weight: 500;
  box-shadow: 0 10px 25px rgba(7,19,36,0.25); display: none;
}
.toast.show { display: inline-flex; align-items: center; gap: 0.5rem; }

.footer { background: var(--navy-950); color: rgba(213,227,242,0.8); padding: 2.5rem 0; font-size: 0.82rem; }
.hidden { display: none !important; }
.err { color: #b91c1c; font-size: 0.78rem; font-weight: 600; }
.ok { color: #047857; font-size: 0.78rem; font-weight: 600; }

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .card { border: 0; box-shadow: none; }
}
