/* Self-hosted fonts (latin subset), so pages don't wait on Google Fonts */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #2E3156;
  --orange: #FF5A24;
  --sky: #A1D3FF;
  --grey: #F5F5F6;
  --navy-soft: #4a4e7a;
  --navy-pale: #c9cbe0;
  --radius: 6px;
  --max: 1120px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--grey);
  color: var(--navy);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  width: min(var(--max), 100% - 3rem);
  margin-inline: auto;
}

/* Headings: the logo's classical serif */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
}

/* Small spaced capitals, echoing "LEMENT STUDIOS" in the logo */
.caps {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Logo shapes, drawn from the PNG as masks so they can take any brand colour */

.logo-mark,
.hero-mark-logo,
.sprig {
  display: block;
  background: currentColor;
  -webkit-mask: var(--mask) center / contain no-repeat;
  mask: var(--mask) center / contain no-repeat;
}

/* Small sizes use the C and sprig only; the full wordmark logo is used large */
.logo-mark { --mask: url("images/logo-mark.webp"); }
.hero-mark-logo { --mask: url("images/ClementStudioLogo.webp"); }

.sprig {
  --mask: url("images/sprig.webp");
  width: 110px;
  aspect-ratio: 2 / 1;
}

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

.site-header {
  padding: 1.25rem 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* The logo mark is the "C", so "lement Studios" sits right up against it */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  color: var(--navy);
}

.logo-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav a:not(.btn):hover { color: var(--orange); }

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

.btn {
  display: inline-block;
  padding: 0.95rem 1.7rem;
  border-radius: 2px;
  border: 1.5px solid var(--navy);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--navy); border-color: var(--navy); }

.btn-outline {
  background: transparent;
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--grey); }

.btn-small { padding: 0.65rem 1.2rem; font-size: 0.75rem; }

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

.hero {
  padding: 3.5rem 0 6rem;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.98;
}

.hero h1 em { color: var(--orange); }

.hero p {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--navy-soft);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Big logo on a soft sky circle */
.hero-mark {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 1;
  justify-self: end;
}

.hero-mark::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: var(--sky);
  opacity: 0.35;
  animation: breathe 10s ease-in-out infinite;
}

.hero-mark-logo {
  position: absolute;
  inset: 8%;
  color: var(--navy);
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ---------- Sections ---------- */

section { padding: 6rem 0; }

h2 {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  line-height: 1.04;
  max-width: 24ch;
}

.lead {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: 1.1rem;
  color: var(--navy-soft);
}

/* Who it's for */

.dark {
  background: var(--navy);
  color: var(--grey);
}

.dark .lead { color: var(--navy-pale); }

.dark h2 em { color: var(--sky); }

.for-list {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
}

.for-list li {
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(161, 211, 255, 0.45);
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* What you get */

.features {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
}

.feature h3 {
  font-size: 1.7rem;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.feature p { color: var(--navy-soft); }

/* Dots echo the berries on the logo's sprig */
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

/* Artist websites */

.work-section { background: #fff; }

.work-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.work-card {
  display: block;
  min-height: 230px;
  border-radius: var(--radius);
  background: var(--grey);
  color: var(--navy);
  text-decoration: none;
  border-top: 3px solid var(--orange);
  transition: transform 0.2s;
}

a.work-card:hover { transform: translateY(-4px); }

.work-card.work-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  overflow: hidden;
}

.work-shot {
  position: relative;
  padding: 2rem 0 0 2rem;
  min-height: 340px;
  background: var(--navy);
  overflow: hidden;
}

/* <picture> wrappers shouldn't affect the screenshot layout */
.work-shot picture { display: contents; }

.shot-desktop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  border-top-left-radius: 4px;
}

.shot-mobile {
  position: absolute;
  right: 1.5rem;
  top: 4rem;
  width: 20%;
  height: auto;
  min-width: 80px;
  border: 4px solid var(--navy);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s;
}

a.work-card:hover .shot-mobile { transform: translateY(-8px); }

.work-card-featured .work-card-content { justify-content: center; }

.work-card-progress { border-top-color: var(--sky); }
.work-card-upcoming { border-top-color: var(--navy); }
.work-card-upcoming h3 { color: var(--navy-soft); }

.work-card-content {
  min-height: inherit;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.work-label {
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  background: rgba(255, 90, 36, 0.1);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-card-progress .work-label { background: rgba(161, 211, 255, 0.45); }
.work-card-upcoming .work-label { background: rgba(46, 49, 86, 0.08); }

.work-card h3 {
  margin-top: 1.4rem;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.05;
}

.work-desc {
  margin-top: 0.6rem;
  color: var(--navy-soft);
  max-width: 32ch;
}

.work-url {
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--navy-soft);
  font-size: 0.95rem;
}

a.work-card .work-url { color: var(--orange); font-weight: 600; }

.work-cta {
  margin-top: 2.5rem;
  font-weight: 500;
}

.work-cta a { color: var(--orange); font-weight: 600; text-decoration: none; }
.work-cta a:hover { text-decoration: underline; }

/* Process */

.steps {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 1px solid var(--navy);
  padding-top: 1.5rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.4rem;
  font-weight: 500;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 0.9rem;
}

.steps h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.steps p { color: var(--navy-soft); }

/* Pricing */

.pricing-section { background: #fff; }

.pricing-section h2 em { color: var(--orange); }

.pricing-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--grey);
  border-radius: var(--radius);
  padding: 2.25rem 2rem 2rem;
}

.plan-featured {
  background: var(--navy);
  color: var(--grey);
}

.plan-badge {
  position: absolute;
  top: -0.8rem;
  left: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 2px;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.plan h3 {
  font-size: 2rem;
  line-height: 1.1;
}

.plan-desc {
  margin-top: 0.5rem;
  color: var(--navy-soft);
  min-height: 3.2em;
}

.plan-featured .plan-desc,
.plan-featured .plan-alt { color: var(--navy-pale); }

.plan-price {
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
}

.plan-price .from,
.plan-price .per {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-soft);
}

.plan-featured .plan-price .from,
.plan-featured .plan-price .per { color: var(--navy-pale); }

.plan-price-custom {
  font-size: 2.4rem;
  font-style: italic;
  font-weight: 500;
}

.plan-alt {
  margin-top: 0.7rem;
  color: var(--navy-soft);
  font-size: 0.95rem;
}

.plan-featured .plan-alt strong { color: var(--sky); }

.plan-list {
  list-style: none;
  margin: 1.75rem 0 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(46, 49, 86, 0.15);
  display: grid;
  gap: 0.6rem;
}

.plan-featured .plan-list { border-top-color: rgba(161, 211, 255, 0.25); }

.plan-list li {
  position: relative;
  padding-left: 1.4rem;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.plan-featured .plan-list li::before { background: var(--sky); }

.plan .btn {
  margin-top: auto;
  text-align: center;
}

.plan-featured .btn-primary:hover {
  background: var(--grey);
  border-color: var(--grey);
  color: var(--navy);
}

/* Pricing carousel dots: hidden on wider screens, where all plans fit */
.plan-dots { display: none; }

.plan-dots button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.plan-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--navy-pale);
  transition: width 0.25s, background 0.25s;
}

.plan-dots button[aria-current]::before {
  width: 22px;
  background: var(--orange);
}

.pricing-notes {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  color: var(--navy-soft);
  font-size: 0.95rem;
}

.pricing-notes strong { color: var(--navy); }

/* CTA */

.cta {
  background: var(--navy);
  color: var(--grey);
  border-radius: var(--radius);
  padding: 4.5rem 3rem;
  text-align: center;
}

.cta .sprig {
  margin: 0 auto 1.5rem;
  color: var(--sky);
}

.cta h2 { margin-inline: auto; }

.cta h2 em, .cta h1 em { color: var(--sky); }

/* 404 page: h1 styled like a section heading */
.cta h1 { font-size: clamp(2.4rem, 4.8vw, 3.6rem); line-height: 1.05; }

.cta p {
  margin: 1.25rem auto 2.25rem;
  max-width: 34rem;
  font-size: 1.1rem;
  color: var(--navy-pale);
}

.cta .btn-primary:hover {
  background: var(--grey);
  border-color: var(--grey);
  color: var(--navy);
}

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

.site-footer {
  padding: 1rem 0 3rem;
}

.sprig-footer {
  width: 70px;
  margin: 0 auto 1rem;
  color: var(--navy-soft);
  opacity: 0.6;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  color: var(--navy-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.contact {
  padding: 3rem 0 6rem;
}

.contact .wrap {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  align-items: start;
}

.contact h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  line-height: 1;
}

.contact-intro p {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  color: var(--navy-soft);
}

.contact-intro .direct {
  margin-top: 2rem;
  font-size: 1rem;
}

.contact-intro .direct a {
  color: var(--orange);
  font-weight: 600;
}

form {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--navy);
  background: var(--grey);
  border: 1.5px solid transparent;
  border-radius: 3px;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s, background 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: #fff;
}

textarea { min-height: 150px; resize: vertical; }

.hp { display: none; }

form .btn { justify-self: start; }

.form-status {
  font-weight: 600;
  min-height: 1.5em;
}
.form-status.ok { color: #1f7a4d; }
.form-status.err { color: var(--orange); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap,
  .contact .wrap { grid-template-columns: 1fr; gap: 2.5rem; }

  .hero-mark { max-width: 260px; justify-self: start; order: -1; }

  .features,
  .work-grid,
  .work-card.work-card-featured,
  .pricing-notes,
  .steps { grid-template-columns: 1fr; }

  /* Plans become a swipeable carousel, starting on Starter */
  .pricing-grid {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    margin-inline: -1.5rem;
    padding: 1rem 1.5rem 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.5rem;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .pricing-grid::-webkit-scrollbar { display: none; }

  .plan {
    flex: 0 0 min(85%, 380px);
    scroll-snap-align: start;
  }

  .plan-dots {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1rem;
  }

  .plan-desc { min-height: 0; }

  .work-shot { min-height: 0; aspect-ratio: 16 / 10; padding: 1.25rem 0 0 1.25rem; }

  section { padding: 4.5rem 0; }

  .cta { padding: 3.5rem 1.5rem; }
}

@media (max-width: 560px) {
  .nav { gap: 1rem; }
  .nav .nav-hide { display: none; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-text { font-size: 0.9rem; letter-spacing: 0.12em; }
  .row { grid-template-columns: 1fr; }
  form { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark::before { animation: none; }
  .btn, .work-card, .shot-mobile { transition: none; }
}
