/*
  HEADING FONT: Fraunces (Google Font), SemiBold weight — loaded live via the
  Google Fonts <link> in each HTML file's <head>, so no local font files needed.
*/

:root {
  --blue: #c2dcfd;
  --yellow: #ffea6f;
  --peach: #ffd9c2;
  --pink: #facef3;
  --mint: #e6e6fb;
  --ink: #1c1c1c;
  --paper: #fafafa;

  --h1-font: 'Fraunces', Georgia, 'Times New Roman', serif;
  --h2-font: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body-font: 'Montserrat', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { font-weight: 400; line-height: 1.15; }

h1 { font-family: var(--h1-font); font-weight: 600; }
h2 { font-family: var(--h2-font); font-weight: 600; }
h3 {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ---------- NAV ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
nav .logo { font-family: var(--h2-font); font-size: 1.25rem; }
nav ul { list-style: none; display: flex; gap: 28px; }
nav a { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
nav a:hover { opacity: 0.6; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--ink);
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  nav ul.open { display: flex; }
  nav ul li { width: 100%; }
  nav ul li a {
    display: block;
    padding: 14px 0;
    width: 100%;
    border-top: 1px solid rgba(0,0,0,0.08);
  }
  nav .wrap { flex-wrap: wrap; }
}

/* ---------- HERO / ABOUT (homepage only) ---------- */
.hero {
  background: var(--blue);
  padding: 110px 0 90px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  max-width: 780px;
  margin-bottom: 34px;
}
.hero p {
  max-width: 620px;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.platforms {
  margin-top: 36px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.hero-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.social svg { width: 20px; height: 20px; }

/* ---------- WORK LIST (homepage only) ---------- */
.work-intro { padding: 90px 0 20px; background: #ffffff; }
.work-intro h3 { margin-bottom: 14px; }
.work-intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 560px; }
.work-intro-copy { margin-top: 22px; max-width: 620px; font-size: 1rem; opacity: 0.8; }

.work-list { padding: 20px 0 100px; background: #ffffff; }
.work-item {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid rgba(0,0,0,0.12);
}
.work-list .work-item:last-child { border-bottom: 1px solid rgba(0,0,0,0.12); }

.work-thumb-outer {
  width: 260px; height: 170px;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  transition: transform 0.3s ease;
}
.work-item:hover .work-thumb-outer { transform: translateY(-3px); }

.work-thumb {
  width: 100%; height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}
.work-thumb .browser-bar {
  height: 20px;
  flex-shrink: 0;
  background: #eeeeee;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}
.work-thumb .browser-bar span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d3d3d3;
}
.work-thumb .thumb-img-wrap {
  flex: 1;
  overflow: hidden;
  background: #f2f2f2;
}
.work-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
}

.work-text h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.work-text p { max-width: 480px; font-size: 0.95rem; opacity: 0.8; }
.work-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  background: #c2dcfd;
}
.work-arrow {
  font-family: var(--h2-font);
  font-size: 1.8rem;
  justify-self: end;
  transition: transform 0.25s ease;
}
.work-item:hover .work-arrow { transform: translateX(6px); }

@media (max-width: 720px) {
  .work-item { grid-template-columns: 1fr; }
  .work-thumb-outer { width: 100%; height: 220px; }
  .work-arrow { display: none; }
}

/* ---------- CASE STUDY PAGE ---------- */
.case-study { padding: 110px 0; }
.case-study.peach { background: #f1eaf6; }
.case-study.pink  { background: #ffe3d1; }
.case-study.mint  { background: #e2f0ea; }

.cs-eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.65; margin-bottom: 16px;
}
.cs-title { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 760px; margin-bottom: 10px; }
.cs-meta { font-size: 0.9rem; font-weight: 600; opacity: 0.75; margin-bottom: 25px; }

.cs-website-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 30px;
  background: #c2dcfd;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 44px;
  transition: transform 0.2s ease;
}
.cs-website-btn:hover { transform: translateY(-2px); }
.cs-result .cs-website-btn { margin-top: 20px; margin-bottom: 0; }

.cs-banner {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.cs-banner.in-view {
  opacity: 1;
  transform: translateY(0);
}
.cs-banner .browser-bar {
  height: 26px;
  background: #eeeeee;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}
.cs-banner .browser-bar span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d3d3d3;
}
.cs-banner img { width: 100%; display: block; }

.cs-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px 56px;
  margin-bottom: 44px;
}
.cs-grid { }
.cs-grid > * { padding-bottom: 20px; }
.cs-grid h3 { padding-top: 4px; }
.cs-heading {
  font-family: var(--h2-font);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  opacity: 1;
  padding-top: 4px;
}
.cs-result .cs-heading { padding-top: 0; margin-bottom: 12px; }
.cs-grid .cs-body { font-size: 1rem; max-width: 640px; }
.cs-grid ul { padding-left: 1.1em; }
.cs-grid li { margin-bottom: 10px; max-width: 640px; }
.cs-grid li:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .cs-grid { grid-template-columns: 1fr; gap: 6px; }
  .cs-grid > div:not(:last-child) { margin-bottom: 10px; }
}

.cs-result {
  margin: 10px 0 60px;
  padding: 34px 36px;
  background: rgba(255,255,255,0.55);
  border-radius: 14px;
  max-width: 760px;
}
.cs-result h3 { margin-bottom: 12px; }
.cs-result p { font-size: 1.02rem; }

.cs-gallery { margin-top: 20px; }
.cs-gallery h3 { padding-bottom: 20px; }
.cs-gallery-grid {
  columns: 2 380px;
  column-gap: 22px;
}
.cs-shot {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 22px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  background: #fff;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.cs-shot.in-view {
  opacity: 1;
  transform: translateY(0);
}
.cs-shot.in-view:nth-child(2) { transition-delay: 0.08s; }
.cs-shot.in-view:nth-child(3) { transition-delay: 0.16s; }
.cs-shot.in-view:nth-child(4) { transition-delay: 0.24s; }
.cs-shot.in-view:nth-child(5) { transition-delay: 0.32s; }
.cs-shot.in-view:nth-child(6) { transition-delay: 0.4s; }
.cs-shot.in-view:nth-child(7) { transition-delay: 0.48s; }
.cs-shot img {
  width: 100%; display: block;
  height: auto;
}

@media (max-width: 560px) {
  .cs-gallery-grid { columns: 1; }
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 0 40px;
  text-align: center;
}
footer h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
footer p { opacity: 0.75; margin-top: 10px; margin-bottom: 34px; }
footer .fine {
  margin-top: 10px;
  font-size: 0.78rem;
  opacity: 0.5;
}
footer .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: background 0.2s ease;
}
footer .social:hover { background: rgba(255,255,255,0.22); }
footer .social svg { width: 20px; height: 20px; fill: var(--paper); }
