:root {
  --sky-top: #5a93b8;
  --sky-mid: #8cb4cf;
  --sky-low: #d9b89a;
  --sun: #f6c896;
  --peach: #f3a878;
  --cloud-shadow: #5a6a82;
  --cloud-light: #ffffff;
  --ink: #0c1622;
  --ink-soft: #1d2735;
  --crimson: #531616;
}

@font-face {
  font-family: 'Display';
  src: local('Mochiy Pop One'), local('Bagel Fat One'), local('Lilita One');
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--sky-mid);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.display, h1, h2, h3 {
  font-family: 'Bagel Fat One', 'Mochiy Pop One', 'Lilita One', 'Fredoka', sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---------- SKY BACKGROUND ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 220, 180, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 30% 80%, rgba(243, 168, 120, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, #c8b0a4 80%, var(--sky-low) 100%);
}
.sun {
  position: fixed;
  top: 12vh; right: 14vw;
  width: 220px; height: 220px;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 240, 210, 0.95), rgba(246, 200, 150, 0.4) 45%, transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  animation: sunDrift 30s ease-in-out infinite alternate;
}
@keyframes sunDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 20px) scale(1.05); }
}

/* ---------- CLOUDS ---------- */
.clouds {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.cloud {
  position: absolute;
  filter: drop-shadow(0 30px 40px rgba(40, 60, 90, 0.25));
  opacity: 0.95;
  will-change: transform;
}
.cloud svg { width: 100%; height: auto; display: block; }

.cloud.c1 { top: 8%;  left: -8%; width: 380px; animation: drift1 90s linear infinite; }
.cloud.c2 { top: 28%; left: -20%; width: 540px; animation: drift2 130s linear infinite; opacity: 0.85; }
.cloud.c3 { top: 55%; left: -15%; width: 460px; animation: drift1 110s linear infinite; }
.cloud.c4 { top: 72%; left: -25%; width: 700px; animation: drift2 160s linear infinite; opacity: 0.92; }
.cloud.c5 { top: 18%; right: -10%; left: auto; width: 420px; animation: driftR 140s linear infinite; }

@keyframes drift1 { from { transform: translateX(0); } to { transform: translateX(120vw); } }
@keyframes drift2 { from { transform: translateX(0); } to { transform: translateX(130vw); } }
@keyframes driftR { from { transform: translateX(0); } to { transform: translateX(-130vw); } }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.15));
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav .brand img { width: 38px; height: 38px; border-radius: 9px; }
.nav .brand .word { font-family: 'Bagel Fat One', sans-serif; font-size: 28px; letter-spacing: -0.02em; }
.nav .links { display: flex; gap: 28px; align-items: center; }
.nav .links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
}
.nav .links a:hover { color: var(--crimson); }
.nav .links a.cta {
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform .2s;
}
.nav .links a.cta:hover { color: #fff; transform: translateY(-2px); }

/* ---------- HERO ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 8vw 60px;
  position: relative;
}
.hero h1 {
  font-size: clamp(72px, 16vw, 280px);
  line-height: 0.88;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--crimson); }
.hero .lede {
  max-width: 640px;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 36px;
}
.hero .ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(12,22,34,0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(12,22,34,0.4); }
.btn-ghost { background: rgba(255,255,255,0.6); color: var(--ink); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,0.85); }

/* scroll indicator */
.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}
.scroll-cue::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--ink-soft);
  margin: 12px auto 0;
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(0.4); opacity: 0.4; } }

/* ---------- SECTIONS ---------- */
section {
  position: relative;
  padding: 120px 8vw;
}
.section-title {
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.9;
  margin-bottom: 24px;
}
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 12px;
}

/* ---------- SERVICES ---------- */
.services {
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.3) 30%, rgba(255,255,255,0.5) 100%);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 60px;
}
.service-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 28px;
  padding: 36px 32px;
  backdrop-filter: blur(12px);
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(40, 60, 90, 0.2); }
.service-card .icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--sun);
  border-radius: 16px;
  margin-bottom: 24px;
  font-size: 26px;
}
.service-card h3 { font-size: 28px; margin-bottom: 12px; }
.service-card p { color: var(--ink-soft); line-height: 1.6; font-size: 15px; }

/* ---------- PORTFOLIO ---------- */
.portfolio-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.2) 100%);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  margin-top: 60px;
}
.portfolio-card {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 60px rgba(40, 60, 90, 0.15);
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s;
  cursor: pointer;
}
.portfolio-card:hover { transform: translateY(-10px) scale(1.01); box-shadow: 0 40px 80px rgba(40, 60, 90, 0.3); }
.portfolio-card .cover {
  aspect-ratio: 4 / 3;
  background: var(--sky-mid) center/cover no-repeat;
}
.portfolio-card .body { padding: 24px 26px 28px; }
.portfolio-card .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--crimson);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.portfolio-card h3 { font-size: 28px; line-height: 1.05; margin-bottom: 6px; }
.portfolio-card .client { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.portfolio-card .desc { margin-top: 12px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.portfolio-card.featured { grid-column: span 2; }
.portfolio-card.featured .cover { aspect-ratio: 16 / 9; }
@media (max-width: 900px) { .portfolio-card.featured { grid-column: span 1; } }

/* ---------- CTA STRIP ---------- */
.cta-strip {
  padding: 100px 8vw;
  background: var(--ink);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip h2 { color: #fff; font-size: clamp(48px, 8vw, 120px); margin-bottom: 16px; }
.cta-strip p { color: #cfd6e0; font-size: 18px; max-width: 580px; margin: 0 auto 30px; }
.cta-strip .btn-primary { background: var(--peach); color: var(--ink); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: #97a0b0;
  padding: 80px 8vw 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { color: #97a0b0; text-decoration: none; display: block; padding: 6px 0; font-size: 14px; }
.footer a:hover { color: var(--peach); }
.footer .brand-block { color: #c1c9d6; }
.footer .brand-block .word { font-family: 'Bagel Fat One', sans-serif; color: #fff; font-size: 36px; letter-spacing: -0.02em; display: block; margin-bottom: 16px; }
.footer .colophon {
  border-top: 1px solid #2b3548;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer .colophon a { display: inline-block; }
.admin-access {
  color: #4a5468 !important;
  font-size: 12px !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- FORMS / GENERIC ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  padding: 14px 16px;
  border: 1px solid rgba(12,22,34,0.15);
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  font: inherit;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 4px rgba(83, 22, 22, 0.12);
}
.field textarea { min-height: 120px; resize: vertical; }
.error { color: var(--crimson); font-weight: 600; font-size: 14px; }
.success { color: #1d6b3a; font-weight: 600; font-size: 14px; }

/* ---------- ADMIN ---------- */
.center-card {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.glass-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 30px 80px rgba(40, 60, 90, 0.25);
  backdrop-filter: blur(20px) saturate(160%);
}
.glass-card h1 { font-size: 56px; line-height: 0.95; margin-bottom: 8px; }
.glass-card .sub { color: var(--ink-soft); margin-bottom: 28px; font-size: 15px; }

.admin-shell {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 24px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.admin-header h1 { font-size: 64px; }
.admin-toolbar {
  background: rgba(255,255,255,0.7);
  padding: 18px 22px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.table-wrap { background: rgba(255,255,255,0.85); border-radius: 22px; overflow: hidden; backdrop-filter: blur(8px); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid rgba(12,22,34,0.08); font-size: 14px; }
th { background: rgba(12,22,34,0.04); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
td .tag { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--ink); color: #fff; }
td .row-actions { display: flex; gap: 6px; }
td .row-actions button {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: rgba(12,22,34,0.08);
  color: var(--ink);
  font-weight: 600;
}
td .row-actions button.del { background: var(--crimson); color: #fff; }
td .cover-mini { width: 60px; height: 40px; border-radius: 6px; object-fit: cover; background: #ccc; }

.modal-bg {
  position: fixed; inset: 0;
  background: rgba(12,22,34,0.5);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-bg.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 24px;
  max-width: 640px;
  width: 100%;
  padding: 36px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
}
.modal h2 { font-size: 36px; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }

/* ---------- PORTFOLIO PAGE DETAIL ---------- */
.page-hero {
  min-height: 60vh;
  padding: 140px 8vw 80px;
}
.page-hero h1 { font-size: clamp(64px, 14vw, 220px); line-height: 0.88; }
.page-hero p { font-size: 20px; max-width: 640px; margin-top: 20px; color: var(--ink-soft); }

/* ---------- ABOUT / CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info p { color: var(--ink-soft); margin-bottom: 12px; font-size: 16px; }
.contact-info .display-line { font-family: 'Bagel Fat One', sans-serif; font-size: 28px; color: var(--ink); }

/* ---------- UTIL ---------- */
.hidden { display: none !important; }
.center { text-align: center; }
.spacer-sm { height: 16px; }
.spacer { height: 40px; }
.muted { color: var(--ink-soft); }
.row { display: flex; gap: 12px; align-items: center; }
.tiny { font-size: 12px; color: var(--ink-soft); }
