@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================
   VLAD DUHNOV — SHARED STYLES
   Colors: Green #31A55E | Cream #F4FFF8
   ============================================ */

/* ---- HIDE SCROLLBAR ---- */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

/* ---- PAGE TRANSITION ---- */
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--cream);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
#page-transition.entering {
  opacity: 1;
}
#page-transition.entered {
  opacity: 0;
}
#page-transition.leaving {
  opacity: 1;
  pointer-events: all;
}

/* ---- SPLASH SCREEN ---- */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
#splash.done {
  opacity: 0;
  pointer-events: none;
}
#splash .splash-svg {
  width: 120px;
  height: auto;
}
#splash .splash-svg svg {
  width: 100%;
  height: auto;
  display: block;
}
#splash .splash-svg path {
  stroke: var(--cream);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('../assets/fonts/LibreBaskerville-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../assets/fonts/LibreBaskerville-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../assets/fonts/LibreBaskerville-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
em { font-style: normal; }

:root {
  --navy:   #31A55E;
  --pink:   #31A55E;
  --pink-bg: rgba(49, 165, 94, 0.18);
  --cream:  #F4FFF8;
  --dot:    rgba(49, 165, 94, 0.18);
  --text:   #31A55E;
  --muted:  rgba(49, 165, 94, 0.4);
}

html { background-color: var(--cream); scroll-behavior: smooth; }

body {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px;
  color: var(--navy);
  background-color: var(--cream);
  max-width: 1920px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

a {
  color: var(--navy);
  text-decoration: none;
  text-transform: uppercase;
}

.pill {
  display: inline-block;
  padding: 14px 24px;
  background: transparent;
  border: 1px solid var(--navy);
  border-radius: 999px;
  font-size: 14px;
  font-family: 'Libre Baskerville', serif;
  color: var(--navy);
  text-transform: capitalize;
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 300ms cubic-bezier(0.25, 0.1, 0.25, 1),
              background 300ms cubic-bezier(0.25, 0.1, 0.25, 1),
              color 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.pill:hover {
  transform: scale(1.03);
  background: var(--navy);
  color: var(--cream);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 3px 6px rgba(0, 0, 0, 0.04),
    0 6px 12px rgba(0, 0, 0, 0.03);
}
.pill:active {
  transform: scale(0.97);
  background: var(--navy);
  color: var(--cream);
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.03),
    0 2px 3px rgba(0, 0, 0, 0.02);
  transition: transform 100ms cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 100ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ---- SKYLINE FOOTER ---- */
.skyline-footer {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  padding-top: 96px;
  padding-bottom: 80px;
  pointer-events: none;
}
.skyline-footer svg {
  width: 100%;
  height: auto;
  display: block;
}
.skyline-footer path {
  stroke: var(--navy);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 12s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.skyline-footer path.draw {
  stroke-dashoffset: 0 !important;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: rgba(49, 165, 94, 0.12);
  margin: 0;
}

/* ---- SITE NAV (shared) ---- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 48px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: none;
}
/* Progressive blur behind nav */
.progressive-blur {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100% + 80px);
  pointer-events: none;
  z-index: -1;
}
.progressive-blur > div {
  position: absolute;
  inset: 0;
}
.progressive-blur .blur-tint {
  background: linear-gradient(
    to bottom,
    rgba(244, 255, 248, 0.95) 0%,
    rgba(244, 255, 248, 0.85) 30%,
    rgba(244, 255, 248, 0.6) 55%,
    rgba(244, 255, 248, 0.2) 75%,
    transparent 100%
  );
}
.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav .nav-links a {
  font-size: 14px;
  color: var(--navy);
  opacity: 1;
  transition: color 200ms cubic-bezier(0.23, 1, 0.32, 1), opacity 200ms cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  text-transform: capitalize;
}
.site-nav .nav-links a .scribble-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 24px);
  height: calc(100% + 20px);
  pointer-events: none;
}
.site-nav .nav-links a .scribble-circle path {
  stroke: var(--navy);
  stroke-width: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--path-length);
  stroke-dashoffset: var(--path-length);
  transition: stroke-dashoffset 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.site-nav .nav-links a:hover { opacity: 1; }
.site-nav .nav-links a:hover .scribble-circle path {
  stroke-dashoffset: 0;
}
.site-nav .nav-links a.active { opacity: 1; font-weight: 600; }
.site-nav .nav-links a.active .scribble-circle path {
  stroke-dashoffset: 0;
}

/* ---- IMAGE PLACEHOLDER ---- */
.image-block {
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(135deg, #ccc 0%, #e0e0e0 100%);
  aspect-ratio: 16/9;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.3);
  font-size: 13px;
}

/* ---- CASE STUDY SHARED ---- */
.case-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 40px 80px;
}
/* Case images — break out of wrapper, 40px from viewport edges */
.case-image {
  width: calc(100vw - 160px);
  margin-left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  display: block;
  max-height: 750px;
  object-fit: cover;
  margin-top: 48px;
  margin-bottom: 64px;
}
@media (max-width: 600px) {
  .case-image {
    width: calc(100vw - 40px);
  }
}

.section-heading {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  color: var(--navy);
  margin: 80px 0 32px;
  line-height: 1.0;
}
.sub-heading {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  color: var(--navy);
  margin: 48px 0 16px;
  line-height: 1.1;
}
.body-text {
  font-size: clamp(17px, 1.8vw, 26px);
  line-height: 1.68;
  color: var(--navy);
  margin-bottom: 22px;
  max-width: 800px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  margin: 40px 0 60px;
}
@media (max-width: 620px) { .info-grid { grid-template-columns: 1fr; } }

.more-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(49,165,94,0.12);
}
.more-title { font-size: clamp(32px,4.5vw,56px); font-weight:400; color:var(--navy); margin-bottom:48px; }
.more-cards { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
@media (max-width:700px){ .more-cards{ grid-template-columns:1fr; } }
.more-card { text-decoration:none; color:var(--navy); }
.more-card-img {
  width:100%; aspect-ratio:4/3;
  background: linear-gradient(135deg, #ccc 0%, #e0e0e0 100%);
  border-radius:10px; margin-bottom:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; color:rgba(0,0,0,0.3);
}
.more-card-label { font-size:15px; opacity:0.65; margin-bottom:6px; }
.more-card-title { font-size:clamp(22px,3vw,42px); font-weight:400; line-height:1.2; }

@media (max-width: 600px) {
  .site-nav { padding: 16px 20px; }
  .site-nav .nav-links { gap: 20px; }
  .site-nav .nav-links a { font-size: 14px; }
  .case-wrapper { padding: 100px 20px 60px; }
}

/* ---- MOBILE ---- */
@media (max-width: 700px) {
  /* All project cover images: uniform aspect ratio on mobile */
  .project-image {
    aspect-ratio: 4/6;
    max-height: none;
    object-fit: cover;
  }

  /* Skyline footer: scale up so it fills the viewport (sides clip naturally) */
  .skyline-footer {
    padding-top: 12px;
    padding-bottom: 60px;
  }
  .skyline-footer svg {
    width: 300%;
    margin-left: -100%;
  }
}