/* ————————————————————————————————————————————————
   bigBespoke — company site
   Graphite + brass. Fraunces display, Inter body.
   Theme: one of a kind, at scale. Nothing recycled.
   ———————————————————————————————————————————————— */

:root {
  --bg: #0a0b0d;
  --bg-raised: #101216;
  --bg-lift: #14161b;
  --ink: #ece9e2;
  --ink-dim: #a9a69d;
  --ink-faint: #75726b;
  --brass: #c9a45b;
  --brass-bright: #e3c27e;
  --brass-dim: rgba(201, 164, 91, 0.35);
  --hairline: rgba(236, 233, 226, 0.09);
  --hairline-strong: rgba(236, 233, 226, 0.18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

::selection { background: var(--brass); color: #0a0b0d; }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ————— Nav ————— */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.wordmark .big { color: var(--ink-dim); font-style: italic; font-weight: 400; }
.wordmark .bespoke { color: var(--ink); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 450;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--brass-bright); }

.nav-links a.nav-cta {
  color: var(--brass);
  border: 1px solid var(--brass-dim);
  border-radius: 999px;
  padding: 8px 18px;
  transition: all 0.25s;
}

.nav-links a.nav-cta:hover {
  background: var(--brass);
  color: #0a0b0d;
  border-color: var(--brass);
}

/* ————— Hero ————— */

.hero {
  position: relative;
  padding: 200px 0 140px;
  overflow: hidden;
}

/* tailor's chalk texture, fading so type stays readable */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/art/hero-texture.jpg") no-repeat 0 0 / cover;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse 92% 82% at 42% 0%, black 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 92% 82% at 42% 0%, black 0%, transparent 74%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -280px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 560px;
  background: radial-gradient(ellipse at center, rgba(201, 164, 91, 0.10) 0%, transparent 62%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.eyebrow {
  font-size: 11.5px;
  font-weight: 550;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 7.4vw, 5.9rem);
  font-weight: 340;
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 15ch;
}

.hero h1 em {
  font-style: italic;
  font-weight: 380;
  color: var(--brass-bright);
}

.hero .lede {
  margin-top: 36px;
  max-width: 58ch;
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink-dim);
}

.hero .lede strong {
  color: var(--ink);
  font-weight: 500;
}

.hero-actions {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  transition: all 0.28s ease;
}

.btn:hover { border-color: var(--ink-dim); transform: translateY(-1px); }

.btn.primary {
  border-color: var(--brass-dim);
  color: var(--brass-bright);
}

.btn.primary:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: #0a0b0d;
}

.btn .arrow { transition: transform 0.28s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ————— Sections ————— */

section { padding: 110px 0; }

.section-head {
  margin-bottom: 64px;
  max-width: 640px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 360;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-head h2 em { font-style: italic; color: var(--brass-bright); font-weight: 400; }

.section-head p {
  margin-top: 20px;
  color: var(--ink-dim);
  font-size: 17.5px;
}

.rule {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

.section-ornament {
  display: flex;
  justify-content: center;
  padding: 12px 24px 4px;
  pointer-events: none;
}

.section-ornament img {
  width: min(720px, 82vw);
  height: auto;
  object-fit: contain;
  opacity: 0.95;
}

/* ————— Published apps ————— */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 36px 32px 30px;
  transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.app-card:hover {
  border-color: var(--brass-dim);
  background: var(--bg-lift);
  transform: translateY(-5px);
}

.app-mark {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0b0d;
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  margin-bottom: 26px;
  transition: border-color 0.35s ease;
}

.app-mark img {
  width: 190%;
  height: 190%;
  object-fit: cover;
  pointer-events: none;
}

.app-card:hover .app-mark { border-color: var(--brass-dim); }

/* real store icons: crop the icon's own baked corners so the tile does the rounding */
.app-mark--icon img {
  width: 116%;
  height: 116%;
  object-fit: cover;
  flex: none;
}

.app-mark--tree img {
  width: 155%;
  height: 155%;
  object-fit: cover;
}

.store-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  position: relative;
  z-index: 2;
}

.store-links a { display: block; line-height: 0; opacity: 0.92; transition: opacity 0.25s; }
.store-links a:hover { opacity: 1; }

/* Apple SVG is tight; the Play PNG carries ~12% built-in padding — negative
   margins bring both to the same optical 40px height. */
.badge-apple { height: 40px; width: auto; display: block; }
.badge-play  { height: 61px; width: auto; display: block; margin: -10px -8px; }

.app-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 430;
  letter-spacing: 0.005em;
}

.app-domain {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-top: 4px;
  margin-bottom: 18px;
}

.app-card p {
  font-size: 15.5px;
  color: var(--ink-dim);
  flex-grow: 1;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  margin-bottom: 26px;
}

.app-tags span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 11px;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: 0.05em;
  color: var(--brass);
  transition: color 0.25s;
}

.app-link:hover { color: var(--brass-bright); }
.app-link .arrow { transition: transform 0.28s ease; }
.app-card:hover .app-link .arrow { transform: translateX(4px); }

.workshop-note {
  margin-top: 40px;
  font-size: 14.5px;
  color: var(--ink-faint);
  border-left: 2px solid var(--brass-dim);
  padding-left: 18px;
}

.workshop-note strong { color: var(--ink-dim); font-weight: 500; }

.support-note {
  margin-top: 36px;
  font-size: 13px;
  color: var(--ink-faint);
}

.support-note a { color: var(--ink-dim); transition: color 0.25s; }
.support-note a:hover { color: var(--brass-bright); }

/* stretched-link: whole card clickable */
.app-card > a.card-cover {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  z-index: 1;
}

/* ————— Studio / services ————— */

.studio { background: var(--bg-raised); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.studio-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    "visual copy"
    "visual terms";
  gap: 36px 64px;
  align-items: start;
}

.studio-visual {
  grid-area: visual;
  margin: 0;
  min-width: 0;
}

.studio-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--hairline);
}

.studio-copy { grid-area: copy; min-width: 0; }
.studio-copy p + p { margin-top: 20px; }
.studio-copy p { color: var(--ink-dim); }
.studio-copy p strong { color: var(--ink); font-weight: 500; }

.studio-grid .terms { grid-area: terms; min-width: 0; }

.terms {
  border: 1px solid var(--hairline-strong);
  border-radius: 18px;
  padding: 8px 30px;
  background: var(--bg);
}

.terms li {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 22px 0;
}

.terms li + li { border-top: 1px solid var(--hairline); }

.terms .t-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 15px;
  min-width: 26px;
}

.terms .t-body { font-size: 15px; color: var(--ink-dim); }
.terms .t-body strong { color: var(--ink); font-weight: 500; display: block; margin-bottom: 2px; letter-spacing: 0.01em; }

/* ————— Standards ————— */

.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px 40px;
}

.standard .s-mark {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 16px;
}

.standard .s-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--brass);
  display: block;
  margin-bottom: 14px;
}

.standard h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 440;
  margin-bottom: 10px;
}

.standard p { font-size: 15px; color: var(--ink-dim); }

/* ————— Founder ————— */

.founder { background: var(--bg-raised); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.founder-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 720px;
}

.founder blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 360;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.founder blockquote em { font-style: italic; color: var(--brass-bright); }

.founder .attribution {
  margin-top: 28px;
  color: var(--ink-dim);
  font-size: 15.5px;
}

.founder .attribution strong { color: var(--ink); font-weight: 500; }

.founder .btn { margin-top: 32px; }

/* ————— Contact / footer ————— */

.contact { text-align: center; padding: 140px 0 120px; }

.contact h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 350;
  letter-spacing: -0.01em;
}

.contact h2 em { font-style: italic; color: var(--brass-bright); }

.contact p {
  margin: 22px auto 40px;
  max-width: 46ch;
  color: var(--ink-dim);
}

footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 0 52px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner .wordmark { font-size: 18px; }

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }

.footer-links a {
  font-size: 13px;
  color: var(--ink-faint);
  transition: color 0.25s;
}

.footer-links a:hover { color: var(--brass-bright); }

.colophon {
  display: block;
  width: 72px;
  height: 72px;
  margin: 36px auto 14px;
}

.footer-legal {
  margin-top: 0;
  font-size: 12.5px;
  color: var(--ink-faint);
  text-align: center;
}

/* ————— Reveal on scroll ————— */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .app-card { transition: none; }
}

/* ————— Responsive ————— */

@media (max-width: 880px) {
  .container { padding: 0 20px; }
  .studio-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "terms";
    gap: 36px;
  }
  .studio-visual img { max-height: 280px; }
  .nav-inner { height: 64px; gap: 12px; }
  .nav-links { gap: 12px; flex-shrink: 0; }
  .nav-links a:not(.nav-cta):not(.keep) { display: none; }
  .nav-links a.nav-cta { padding: 7px 14px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  section { padding: 84px 0; }
  .hero { padding: 160px 0 100px; }
  .section-ornament { padding: 8px 20px 0; }
}
