/* ==========================================================================
   TulipShots — styles (matches the Framer design)
   ========================================================================== */

:root {
  --ink: #111111;
  --text: #222222;
  --muted: #5F5F5F;
  --line: #E8E8E8;
  --chip: #E3E3E3;
  --pill: #EBEBEB;
  --white: #FFFFFF;

  --blue-glow: rgba(178, 222, 246, 0.75);
  --peach-glow: rgba(253, 232, 192, 0.85);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Italic serif accent used inside headings */
.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
}

/* ---------- Soft gradient ground ---------- */

.glow {
  background:
    radial-gradient(620px 440px at 16% 42%, var(--blue-glow), rgba(255,255,255,0) 72%),
    radial-gradient(680px 480px at 84% 30%, var(--peach-glow), rgba(255,255,255,0) 72%),
    var(--white);
}
.page-top { border-radius: 40px 40px 0 0; }
body { position: relative; }
.page-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1000px;
  z-index: -1;
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
  mask-image: linear-gradient(#000 65%, transparent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  padding: 7px 7px 7px 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s;
}
.btn:hover { background: #333; color: #fff; }
.btn .arrow {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: rotate(45deg); }
.btn-lg { padding-left: 32px; gap: 22px; }
.btn-plain { padding: 13px 20px; font-size: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding-inline: var(--gutter);
  margin-top: 12px;
}
.header-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled .header-inner {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}

.brand { display: inline-flex; justify-self: start; }
.brand img { height: 30px; width: auto; }

.nav-pill {
  display: flex;
  gap: 4px;
  background: var(--pill);
  border-radius: 999px;
  padding: 5px;
  list-style: none;
  margin: 0;
}
.nav-pill a {
  display: block;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 999px;
  transition: background-color .2s;
}
.nav-pill a:hover { background: rgba(255,255,255,0.6); }
.nav-pill a[aria-current="page"] { background: #fff; }

.header-cta { justify-self: end; }

/* Burger button + mobile menu (hidden on desktop) */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  justify-self: end;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px; height: 1.5px;
  background: #fff;
  position: relative;
  transition: transform .2s, background-color .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu { display: none; }

@media (max-width: 760px) {
  .site-header { height: 62px; }  /* menu opens over the page instead of pushing it down */
  .header-inner { grid-template-columns: 1fr auto; padding: 8px 8px 8px 14px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand img { height: 24px; }

  .site-header.menu-open .header-inner {
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
  .mobile-menu:not([hidden]) {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    padding: 8px 6px 6px;
  }
  .mobile-menu a:not(.btn) {
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu a[aria-current="page"] { color: var(--muted); }
  .mobile-menu .btn { margin-top: 16px; justify-content: space-between; }
}

/* ---------- Hero ---------- */

.hero { padding: 0 var(--gutter) 96px; text-align: center; }
.hero-inner { max-width: var(--wrap); margin-inline: auto; padding-top: 104px; }
.hero h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(46px, 7.4vw, 112px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}
.hero h1 .accent { font-size: 1.08em; letter-spacing: -0.04em; display: inline-block; }
.hero p {
  margin: 40px auto 28px;
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
@media (max-width: 760px) { .hero-inner { padding-top: 64px; } }

/* ---------- Statement + value pills ---------- */

.statement { padding: 96px var(--gutter) 40px; text-align: center; }
.statement p {
  margin: 0 auto;
  max-width: 1240px;
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.045em;
  color: var(--text);
}
.value-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.value-pills li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 24px 8px 20px;
  border-radius: 999px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.1;
}
.value-pills svg { width: 0.62em; height: 0.62em; }
.pill-purple { background: #F1E4FB; color: #A56FD8; }
.pill-orange { background: #FDEBDA; color: #E8914A; }
.pill-blue   { background: #E2EEFA; color: #5E98D0; }

/* ---------- Section headings ---------- */

.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

/* ---------- Work grid ---------- */

.work { max-width: 1140px; margin-inline: auto; padding: 96px var(--gutter) 0; }
.work .section-title { margin-bottom: 56px; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 40px;
}
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; gap: 40px; } }

.work-card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.work-thumb {
  aspect-ratio: 1.434;
  border-radius: 16px;
  overflow: hidden;
  background: #F3F3F3;
}
.work-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.work-card:hover .work-thumb img { transform: scale(1.03); }
.work-name { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li {
  border: 1px solid var(--chip);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  line-height: 1.4;
  background: #fff;
}
.center { text-align: center; }
.work .center { margin-top: 56px; }

/* ---------- FAQ ---------- */

.faq { max-width: 1200px; margin-inline: auto; padding: 160px var(--gutter) 0; }
.faq .section-title { margin-bottom: 64px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; background: #fff; }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: -0.02em;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex: none;
  width: 14px; height: 14px;
  background:
    linear-gradient(#555, #555) center / 100% 1.25px no-repeat,
    linear-gradient(#555, #555) center / 1.25px 100% no-repeat;
  transition: transform .25s;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { margin: 0 0 22px; color: var(--muted); max-width: 52em; }

/* ---------- CTA card ---------- */

.cta { max-width: 1200px; margin-inline: auto; padding: 200px var(--gutter) 0; }
.cta-card {
  border: 1px solid #EDEDED;
  border-radius: 24px;
  padding: clamp(80px, 10vw, 140px) 32px;
  text-align: center;
  background:
    radial-gradient(520px 360px at 12% 50%, rgba(192, 226, 247, 0.7), rgba(255,255,255,0) 75%),
    radial-gradient(560px 380px at 88% 30%, rgba(253, 236, 205, 0.85), rgba(255,255,255,0) 75%),
    #fff;
}
.cta-card p { margin: 28px auto 22px; max-width: 760px; color: var(--muted); font-size: 15px; }
.cta-card .btn { font-size: 15px; padding: 6px 6px 6px 22px; }
.cta-card .btn .arrow { width: 34px; height: 34px; }

/* ---------- Footer ---------- */

.site-footer { max-width: var(--wrap); margin-inline: auto; padding: 120px var(--gutter) 32px; font-size: 15px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid .brand img { height: 28px; }
.footer-grid p { margin: 22px 0 0; color: var(--muted); line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-col h2 { margin: 0; font-size: 15px; font-weight: 500; }
.footer-col a, .footer-col button { color: var(--muted); text-decoration: none; }
.footer-col a:hover, .footer-col button:hover { color: var(--ink); }
.footer-col button { background: none; border: 0; padding: 0; cursor: pointer; font-size: 15px; }
.footer-col .with-icon { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.socials { display: flex; gap: 14px; margin-top: 18px; }
.socials a { color: #666; }
.socials a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Cookie banner ---------- */

.cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 150;
  width: 360px;
  max-width: calc(100% - 32px);
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
}
.cookie[hidden] { display: none; }
.cookie h2 { margin: 0; font-size: 14px; font-weight: 600; }
.cookie p { margin: 8px 0 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cookie-actions button {
  border: 0; border-radius: 8px; padding: 10px; font-size: 13px; cursor: pointer; min-height: 40px;
}
.cookie-reject { background: #EFEFEF; color: var(--ink); }
.cookie-accept { background: #000; color: #fff; }
@media (max-width: 480px) { .cookie { left: 16px; bottom: 16px; } }

/* ---------- Project pages ---------- */

.project-hero { padding: 88px var(--gutter) 56px; text-align: center; }
.project-hero h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}
.project-hero .chips { justify-content: center; margin-top: 20px; }
.project-hero .btn { margin-top: 28px; }
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.back-link:hover { color: var(--ink); }
@media (max-width: 760px) { .project-hero { padding-top: 56px; } }

.project-media {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.project-media video,
.project-media img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #F3F3F3;
}

.prose { max-width: 720px; margin-inline: auto; padding: 88px var(--gutter) 0; }
.prose h2 {
  margin: 2.2em 0 0.6em;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8em 0 0.4em; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.prose p, .prose li { color: #444; font-size: 17px; line-height: 1.7; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }

.pager {
  max-width: 720px;
  margin: 96px auto 0;
  padding: 32px var(--gutter) 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.pager a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
  flex: 1;
}
.pager a:hover { border-color: #CFCFCF; }
.pager small { color: var(--muted); font-size: 13px; }
.pager span { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.pager .next { text-align: right; }
.pager .spacer { flex: 1; }

/* Screens gallery (used on app projects like Steady) */
.gallery { max-width: 1140px; margin-inline: auto; padding: 72px var(--gutter) 0; }
.gallery-phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gallery-desktop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
@media (max-width: 860px) {
  .gallery-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-desktop { grid-template-columns: 1fr; }
}
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px #ECECEC; }
.gallery figcaption { font-size: 14px; color: var(--muted); }
.prose-cont { padding-top: 72px; }

.badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  letter-spacing: 0;
}

/* ---------- Contact ---------- */

.contact-hero { padding: 120px var(--gutter) 48px; text-align: center; }
.contact-hero h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(40px, 4.6vw, 66px);
  line-height: 1.1;
  letter-spacing: -0.06em;
}
.contact-hero h1 .accent { font-size: 1.05em; letter-spacing: -0.04em; }
.contact-hero p { margin: 18px auto 0; max-width: 760px; color: var(--muted); font-size: 17px; }
.contact-hero p:first-of-type { margin-top: 44px; }
@media (max-width: 760px) { .contact-hero { padding-top: 64px; } }

.form-wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); margin-top: -8px; }
.form {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.03), 0 20px 50px rgba(0,0,0,0.04);
  padding: clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: end; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 17px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--chip);
  border-radius: 14px;
  padding: 0 18px;
  font-size: 17px;
  background: #fff;
  transition: border-color .2s;
}
.field textarea { min-height: 150px; padding: 16px 18px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.field input::placeholder, .field textarea::placeholder { color: #8A8A8A; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #9A9A9A; }
.form .btn { align-self: flex-start; font-size: 17px; padding: 8px 8px 8px 26px; }
.form .btn .arrow { width: 40px; height: 40px; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-size: 15px; color: #B42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Simple pages ---------- */

.simple { padding: 40px var(--gutter) 40px; text-align: center; min-height: 60vh; }
.simple h1 {
  margin: 120px 0 0;
  font-weight: 600;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.06em;
  line-height: 1.05;
}
.simple p { margin: 24px auto 28px; max-width: 520px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work-thumb img, .btn .arrow, .faq-item summary .plus { transition: none; }
}
