/* CRS Ventures Limited — studio site
   Night studio, cream type, antique brass.
   Craft matches the GoPetPrints flagship quality bar; identity is its own. */

:root {
  --night: #0B0C0E;
  --raised: #131519;
  --raised-2: #181B20;
  --cream: #F4EFE6;
  --cream-soft: #E8E2D6;
  --brass: #C5A572;
  --brass-bright: #D4B98A;
  --brass-deep: #A88750;
  --muted: #8B909A;
  --hairline: #2A2D33;
  --snow: #E8E6E1;
  --ink: #0B0C0E;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Instrument Sans", "Inter", "Helvetica Neue", sans-serif;
  --topbar-h: 36px;
  --header-h: 72px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-bright); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Top bar & header ---------- */

.topbar {
  height: var(--topbar-h);
  background: #070809;
  color: var(--cream-soft);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--hairline);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(11, 12, 14, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand:hover { color: inherit; }

.crest {
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--brass);
  display: block;
}

.crest-letters {
  fill: var(--cream);
  font-family: "Instrument Serif", serif;
  font-size: 16px;
  letter-spacing: 0.6px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--cream);
  line-height: 1.1;
}

.wordmark small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

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

.nav a:not(.btn) {
  color: var(--cream-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hairline);
  background: var(--raised);
  border-radius: 2px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle i {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--cream);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-primary,
a.btn-primary,
.nav a.btn-primary {
  background: var(--snow);
  color: var(--night) !important;
  border-color: var(--snow);
  text-decoration: none;
}

.btn-primary:hover,
a.btn-primary:hover,
.nav a.btn-primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--night) !important;
  transform: translateY(-1px);
}

.btn-secondary,
a.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--brass);
  padding-left: 8px;
  padding-right: 8px;
}

.btn-secondary:hover { color: var(--brass-bright); }

.btn-ghost,
a.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--hairline);
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
}

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

.hero {
  min-height: calc(100svh - var(--topbar-h) - var(--header-h));
  display: grid;
  align-items: center;
  padding: 28px 0 40px;
  background:
    radial-gradient(ellipse 70% 80% at 78% 48%, rgba(197, 165, 114, 0.09) 0%, rgba(11, 12, 14, 0) 62%),
    var(--night);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.kicker {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero h1,
.section-head h2,
.legal-hero h1,
.legal-body h2,
.brand-card h3,
.thesis h2,
.site-footer .wordmark {
  font-family: var(--serif);
  font-weight: 400;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: -0.02em;
}

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

.hero .lead {
  margin: 0 0 32px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--cream-soft);
  max-width: 32ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 18px;
}

.reassurance {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.hero-frame {
  margin: 0;
  position: relative;
  background: #101215;
  padding: 10px 10px 0;
  border-radius: 2px;
  border: 1px solid rgba(197, 165, 114, 0.45);
  box-shadow:
    0 0 0 1px rgba(11, 12, 14, 0.8),
    0 0 0 2px rgba(197, 165, 114, 0.18),
    0 32px 70px rgba(0, 0, 0, 0.45);
}

.hero-mat {
  position: relative;
  padding: 6px;
  background: #070809;
  box-shadow: inset 0 0 0 1px rgba(197, 165, 114, 0.35);
}

.hero-mat img {
  width: 100%;
  aspect-ratio: 16 / 10.1;
  object-fit: cover;
  object-position: center 52%;
  display: block;
}

.hero-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  background: rgba(11, 12, 14, 0.78);
  color: var(--cream);
  border: 1px solid rgba(197, 165, 114, 0.55);
  padding: 7px 11px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-frame figcaption {
  padding: 10px 8px 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}

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

section { padding: 96px 0; }

.section-night { background: var(--night); }
.section-raised { background: var(--raised); }

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 8px;
  width: min(220px, 50%);
}

.rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), var(--brass));
}

.rule span:last-child {
  background: linear-gradient(90deg, var(--brass), var(--brass), transparent);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.12;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- Portfolio ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.brand-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  background: var(--raised-2);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 26px 26px 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  min-height: 196px;
}

.brand-card:hover {
  border-color: rgba(197, 165, 114, 0.7);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: inherit;
}

.brand-card .tag {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.brand-card h3 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.brand-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15.5px;
}

.brand-card .domain {
  margin-top: auto;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cream-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 165, 114, 0.4);
  justify-self: start;
}

.brand-card:hover .domain { color: var(--brass-bright); border-bottom-color: var(--brass-bright); }

/* ---------- Thesis ---------- */

.thesis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: start;
}

.thesis h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 3.6vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.thesis p {
  margin: 0 0 16px;
  color: var(--cream-soft);
  max-width: 50ch;
}

.thesis p.muted { color: var(--muted); font-size: 15px; }

.particulars {
  background: #101215;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 28px 26px;
}

.particulars h3 {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.particulars dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.particulars div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.particulars div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.particulars dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.particulars dd {
  margin: 0;
  color: var(--cream-soft);
  font-size: 15px;
}

.particulars .pending {
  color: var(--brass-bright);
  font-style: italic;
}

.contact-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

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

.site-footer {
  background: #070809;
  color: var(--cream-soft);
  padding: 56px 0 32px;
  font-size: 14px;
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer .wordmark { font-size: 26px; }
.site-footer .wordmark small { color: var(--muted); }
.site-footer p { color: var(--muted); }
.site-footer h3 {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  font-family: var(--sans);
}

.footer-links { display: grid; gap: 8px; }

.site-footer a {
  color: var(--cream-soft);
  text-decoration: none;
}

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

.footer-legal {
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  font-size: 12.5px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

/* ---------- Legal pages ---------- */

.legal-hero { padding: 56px 0 8px; }

.legal-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
}

.legal-hero .lede {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.legal-body {
  padding: 32px 0 96px;
  max-width: 760px;
}

.legal-body h2 {
  margin: 36px 0 10px;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.legal-body h3 {
  margin: 22px 0 8px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.legal-body p, .legal-body li { color: var(--cream-soft); }
.legal-body ul { padding-left: 1.15em; }
.legal-body .meta {
  font-size: 13.5px;
  color: var(--muted);
}

.note-card {
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 24px;
  margin: 24px 0;
}

.note-card h2 { margin-top: 0; }

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

@media (max-width: 1080px) {
  .hero-grid,
  .thesis-grid,
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { min-height: 0; padding: 24px 0 32px; }
  .hero .lead { max-width: 42ch; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  :root { --header-h: 64px; --topbar-h: auto; }
  .topbar {
    height: auto;
    min-height: 32px;
    padding: 6px 12px;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    line-height: 1.35;
  }
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #0B0C0E;
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 4px;
  }
  .nav.open { display: flex; }
  .nav a, .nav .btn { width: 100%; justify-content: center; padding: 12px; }
  section { padding: 72px 0; }
  .hero h1 { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .particulars div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-secondary { text-align: center; }
  .hero-mat img { aspect-ratio: 16 / 11; }
  .brand-card h3 { font-size: 26px; }
}

header .btn-primary, nav .btn-primary, .site-header .btn-primary { color: #0B0C0E !important; }
