/* ============================================================
   Studio 668 — company site
   Clean, minimal, light. Its own identity, distinct from Atelaire.
   Off-white paper · near-black ink · one restrained cobalt accent.
   ============================================================ */

:root {
  --paper: #FBFAF8;   /* warm off-white background */
  --ink: #161514;     /* near-black text */
  --muted: #78756E;   /* warm gray secondary */
  --hair: #E7E4DD;    /* hairline borders */
  --card: #FFFFFF;
  --accent: #2B44D6;  /* cobalt — used sparingly */

  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 960px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
a { color: inherit; text-decoration: none; }

/* ---------- Brand badge + wordmark ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.5px;
  flex: none;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.4px;
  color: var(--ink);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.nav.scrolled {
  background: rgba(251, 250, 248, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--hair);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 15px; font-weight: 450; color: var(--muted);
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero ---------- */
.hero { padding: 120px 0 96px; }
.eyebrow {
  font-family: var(--display);
  font-size: 13px; font-weight: 500;
  letter-spacing: .2px;
  color: var(--accent);
  margin: 0 0 22px;
}
.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 6.6vw, 66px);
  line-height: 1.05;
  letter-spacing: -1.8px;
  margin: 0 0 24px;
}
.lede {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 40px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center;
  height: 46px; padding: 0 22px;
  border-radius: 9999px;
  font-family: var(--display);
  font-weight: 500; font-size: 15px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  transition: transform .15s ease, opacity .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn-ghost:hover { border-color: var(--ink); opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.bordered { border-top: 1px solid var(--hair); }
.label {
  font-family: var(--display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 30px;
}
.section-head {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -1px;
  margin: 0 0 18px;
}
.section-lede { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 0 32px; }

/* ---------- Work / product ---------- */
.product {
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(22,21,20,.08);
  border-color: #d9d5cc;
}
.product-thumb { flex: none; }
.product-thumb img {
  width: 104px; height: 104px;
  border-radius: 22%;
  box-shadow: 0 8px 22px rgba(22,21,20,.16);
}
.product-name {
  font-family: var(--display);
  font-weight: 600; font-size: 26px;
  letter-spacing: -.6px;
  margin: 0 0 6px;
}
.product-tag { font-weight: 500; color: var(--ink); margin: 0 0 12px; }
.product-desc { font-size: 15.5px; color: var(--muted); margin: 0 0 16px; max-width: 520px; }
.product-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--muted); margin: 0;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
.arrow {
  font-family: var(--display); font-weight: 500;
  color: var(--accent);
}

/* ---------- About / principles ---------- */
.principles { list-style: none; padding: 0; margin: 8px 0 0; max-width: 560px; }
.principles li {
  padding: 16px 0;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 16px;
}
.principles li strong { color: var(--ink); font-weight: 600; margin-right: 4px; }

/* ---------- Contact ---------- */
.email {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -1px;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  transition: color .18s ease;
}
.email:hover { color: var(--accent); }
.contact-meta { margin: 26px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hair); padding: 40px 0 48px; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { font-family: var(--display); font-weight: 600; font-size: 16px; margin: 0; }
.footer-sub { font-size: 13px; color: var(--muted); margin: 1px 0 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color .18s ease; }
.footer-links a:hover { color: var(--ink); }
.copyright { width: 100%; font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .hero { padding: 84px 0 68px; }
  .section { padding: 60px 0; }
  .product { flex-direction: column; align-items: flex-start; gap: 20px; padding: 26px; }
  .footer-links { margin-left: 0; }
}
@media (max-width: 400px) {
  .wordmark { display: none; }
}
