:root {
  --teal-brand: #07a2b6;
  --orange-brand: #e96638;
  --teal: #1B93AE;
  --orange: #F26B3A;
  --yellow: #FBC02D;
  --deep-teal: #0F3F4B;
  --deep-teal-border: #2F6874;
  --ink: #1E2A2E;
  --warm-grey: #5A5347;
  --muted-on-dark: #BFD6DC;
  --cream: #FDF8EC;
  --white: #FFFFFF;
  --pale-teal: #E6F4F7;
  --pale-teal-text: #136A7F;
  --field-border: #E4D9C4;
  --muted-brown: #8A7D66;
  --cta-body: #4A3A0B;
  --footer-grey: #6E6355;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Karla, Helvetica, sans-serif;
  text-wrap: pretty;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2 { font-family: 'Baloo 2', cursive; font-weight: 800; margin: 0; }

button { font-family: inherit; cursor: pointer; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  padding: 17px 32px;
  transition: background-color 150ms ease;
}
.btn-primary { background: var(--orange); color: var(--cream); }
.btn-primary:hover { background: var(--teal); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--orange); }
.btn-pulse { animation: wbPulse 3.4s ease-in-out infinite; }
.btn-text {
  background: none;
  border: none;
  font-weight: 700;
  font-size: 16px;
  color: var(--warm-grey);
  transition: color 150ms ease;
}
.btn-text:hover { color: var(--ink); }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px 48px;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 14px; line-height: 1; }
.logo-word {
  display: block;
  font-family: Sniglet, cursive;
  font-weight: 400;
  font-size: 37px;
  color: var(--teal-brand);
  letter-spacing: -0.5px;
}
.logo-sub {
  display: block;
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 6px;
  text-indent: 6px;
  text-align: center;
  color: var(--orange-brand);
  margin-top: 4px;
}
.logo-mark { height: 54px; width: auto; }
.site-header .btn-primary { margin-left: auto; padding: 13px 24px; font-size: 16px; }

/* Hero */
.hero {
  position: relative;
  padding: 56px 48px 72px;
  overflow: hidden;
}
.deco { position: absolute; pointer-events: none; }
.deco-balloon { top: 36px; right: 104px; width: 150px; animation: wbFloat 7s ease-in-out infinite; }
.deco-cloud-a { top: 250px; right: 40px; width: 96px; opacity: 0.7; animation: wbDrift 13s ease-in-out infinite alternate; }
.deco-cloud-b { top: 132px; right: 290px; width: 105px; animation: wbDrift 11s ease-in-out infinite alternate; }
.deco-cloud-c { top: 330px; right: 430px; width: 67px; opacity: 0.75; animation: wbDrift 14s ease-in-out infinite alternate-reverse; }
.deco-cloud-d { top: 52px; right: 430px; width: 45px; opacity: 0.55; animation: wbFloatSlow 10s ease-in-out infinite; }

.hero-copy { position: relative; max-width: 760px; }
.hero-copy h1 {
  font-size: 74px;
  line-height: 1.03;
  letter-spacing: -1px;
  margin-top: 22px;
  animation: wbRise 0.7s ease-out 0.05s both;
}
.hero-copy p {
  font-size: 21px;
  line-height: 1.55;
  color: var(--warm-grey);
  max-width: 44ch;
  margin-top: 24px;
  animation: wbRise 0.7s ease-out 0.12s both;
}

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}
.stat-card { background: var(--white); border-radius: 22px; padding: 22px 24px; }
.stat-n { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 40px; line-height: 1; color: var(--teal); }
.stat-n-infinity { font-family: Karla, Helvetica, Arial, sans-serif; font-weight: 700; font-size: 64px; line-height: 0.7; }
.stat-label { font-size: 15px; color: var(--warm-grey); margin-top: 8px; line-height: 1.45; }

/* Portfolio band */
.portfolio {
  background: var(--deep-teal);
  color: var(--cream);
  padding: 56px 48px;
}
.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.eyebrow-dark { color: var(--yellow); }
.portfolio-intro h2 { font-size: 46px; margin-top: 12px; }

.concept-label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 8px;
}

.concept-row {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--deep-teal-border);
}
.portfolio-intro + .concept-row { border-top: none; padding-top: 0; }

.concept-media, .concept-copy { flex: 1 1 0; min-width: 0; }
.concept-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 20px;
}

.concept-copy h3 { font-size: 32px; }
.concept-core {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-on-dark);
  margin-top: 18px;
}
.concept-loop { margin-top: 24px; }
.concept-loop ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted-on-dark);
}
.concept-loop strong { color: var(--cream); }

.concept-disclaimer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--deep-teal-border);
  font-size: 14px;
  line-height: 1.6;
  color: #9AA8AB;
  text-align: center;
}

/* Contact CTA */
.cta {
  margin: 48px;
  background: var(--yellow);
  border-radius: 24px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-copy h2 { font-size: 34px; }
.cta-copy p { font-size: 17px; margin-top: 8px; color: var(--cta-body); }
.cta .btn { margin-left: auto; }

/* Footer */
.site-footer {
  display: flex;
  gap: 32px;
  padding: 0 48px 44px;
  font-size: 15px;
  color: var(--footer-grey);
  flex-wrap: wrap;
}
.footer-right { margin-left: auto; }

/* Contact modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 63, 75, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 50;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--cream);
  border-radius: 26px;
  padding: 40px;
  width: 520px;
  max-width: 100%;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(15, 63, 75, 0.35);
}
.modal-head { display: flex; align-items: flex-start; gap: 16px; }
.modal-head h2 { font-size: 32px; }
.modal-head p { font-size: 16px; line-height: 1.55; color: var(--warm-grey); margin-top: 8px; }
.modal-direct {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
}
.modal-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted-brown);
  transition: color 150ms ease;
}
.modal-close:hover { color: var(--ink); }

.modal-confirm {
  background: var(--pale-teal);
  color: var(--pale-teal-text);
  border-radius: 18px;
  padding: 24px;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.55;
}
.modal-confirm[hidden] { display: none; }

.contact-form { display: grid; gap: 16px; margin-top: 26px; }
.contact-form[hidden] { display: none; }
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--warm-grey);
}
.contact-form .optional { font-weight: 400; color: var(--muted-brown); }
.contact-form input,
.contact-form textarea {
  border: 2px solid var(--field-border);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: Karla, sans-serif;
  font-size: 16px;
  background: var(--white);
  color: var(--ink);
}
.contact-form textarea { resize: vertical; }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }

/* Keyframes */
@keyframes wbFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-26px) rotate(2deg); } }
@keyframes wbFloatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes wbDrift { from { transform: translateX(-8%); } to { transform: translateX(8%); } }
@keyframes wbRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wbPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  .deco, .hero-copy h1, .hero-copy p, .btn-pulse {
    animation: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .deco { display: none; }
  .hero-copy h1 { font-size: 56px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header { padding: 18px 24px; gap: 16px; }

  .hero { padding: 40px 24px 48px; }
  .hero-copy h1 { font-size: 40px; letter-spacing: -0.5px; }
  .hero-copy p { font-size: 18px; }
  .stats { grid-template-columns: 1fr; margin-top: 40px; }

  .portfolio { padding: 40px 24px; }
  .portfolio-intro h2 { font-size: 34px; }
  .concept-row { flex-direction: column; align-items: stretch; gap: 24px; margin-top: 40px; padding-top: 32px; }
  .concept-copy h3 { font-size: 26px; }

  .cta { margin: 24px; padding: 32px; }
  .cta .btn { margin-left: 0; width: 100%; text-align: center; }

  .site-footer { padding: 0 24px 32px; }
  .footer-right { margin-left: 0; }

  .modal { padding: 28px; border-radius: 20px; }
}
