/* Rusticus Systems - Roman Stoic theme. Navy stone, gold inlay, inscriptional capitals. */
:root {
  --navy: #0B1426;
  --navy-2: #0F1A31;
  --navy-3: #15213C;
  --gold: #C9A24D;
  --gold-hi: #E6CC82;
  --gold-lo: #9A7628;
  --line: rgba(201, 162, 77, 0.28);
  --line-soft: rgba(201, 162, 77, 0.14);
  --ivory: #F5F2EA;
  --text: #E9E5DA;
  --muted: #A3A9B8;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --caps: Cinzel, "Trajan Pro", Georgia, serif;
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 22H24M22 22V2H6V16H16V8H11' fill='none' stroke='%23C9A24D' stroke-width='2'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
/* stone grain and a soft glow from above, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(201, 162, 77, 0.13), transparent 62%),
    var(--grain);
  pointer-events: none;
}
a { color: var(--gold-hi); }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
main { flex: 1; }
.gold-stop-top { stop-color: var(--gold-hi); }
.gold-stop-bottom { stop-color: #B38A3A; }

/* ---------- ornaments ---------- */
.meander {
  height: 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--meander) repeat-x center / 24px 24px;
  opacity: 0.75;
}
.meander.thin { height: 30px; background-size: 18px 18px; opacity: 0.55; }
.sec-head { display: flex; align-items: center; gap: 22px; margin: 0 0 6px; }
.sec-head::before, .sec-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.sec-head::after { background: linear-gradient(270deg, transparent, var(--line)); }
.sec-head h2 {
  margin: 0;
  font-family: var(--caps);
  font-weight: 500;
  font-size: clamp(22px, 3.4vw, 30px);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--ivory);
  text-align: center;
}
.sec-sub { text-align: center; font-style: italic; color: var(--muted); margin: 0 0 44px; }
.sec-sub b { font-style: normal; font-weight: 400; color: var(--gold); letter-spacing: 0.04em; }
section.band { padding: 84px 0; }

/* ---------- header ---------- */
.site-header { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.mark svg { width: 44px; height: 44px; flex-shrink: 0; }
.mark .words { display: flex; flex-direction: column; gap: 5px; line-height: 1; }
.mark .name { font-family: var(--caps); font-weight: 500; font-size: 22px; letter-spacing: 0.12em; color: var(--ivory); }
.mark .sub { font-family: var(--caps); font-size: 10px; font-weight: 600; letter-spacing: 0.5em; color: var(--gold); }
.site-nav { display: flex; gap: 6px 26px; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--caps);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-hi); border-bottom-color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--caps);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border: 1px solid var(--gold);
  color: var(--gold-hi);
  background: transparent;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.btn:hover { background: rgba(201, 162, 77, 0.12); box-shadow: 0 0 28px rgba(201, 162, 77, 0.22); transform: translateY(-1px); }
.btn.solid { background: linear-gradient(180deg, var(--gold-hi), #B38A3A); color: var(--navy); border-color: var(--gold-hi); }
.btn.solid:hover { background: linear-gradient(180deg, #F0DA9A, var(--gold)); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- home hero ---------- */
.hero { text-align: center; padding: 64px 0 80px; }
.hero .wreath { width: min(300px, 68vw); height: auto; display: block; margin: 0 auto 30px; filter: drop-shadow(0 0 34px rgba(201, 162, 77, 0.22)); }
.eyebrow { font-family: var(--caps); font-size: 13px; letter-spacing: 0.42em; text-indent: 0.42em; color: var(--gold); margin: 0 0 18px; text-transform: uppercase; }
.hero h1 {
  font-family: var(--caps);
  font-weight: 500;
  font-size: clamp(40px, 8.6vw, 92px);
  line-height: 1.04;
  letter-spacing: 0.08em;
  margin: 0 0 22px;
  color: var(--gold-hi);
  background: linear-gradient(180deg, #F3E2AC 0%, var(--gold) 55%, #A47D2E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede { font-size: clamp(19px, 2.4vw, 23px); color: var(--text); max-width: 34em; margin: 0 auto 36px; }
.hero .lede em { color: var(--gold-hi); }

/* ---------- works: each app is a temple niche ---------- */
.niches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 36px; max-width: 800px; margin: 0 auto; }
.niche {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 86px 34px 0;
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2) 70%);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* fluted columns down both sides */
.niche::before, .niche::after {
  content: "";
  position: absolute;
  top: 62px;
  bottom: 30px;
  width: 15px;
  background: repeating-linear-gradient(90deg, rgba(201, 162, 77, 0.5) 0 1.5px, transparent 1.5px 4.5px);
  opacity: 0.55;
  transition: opacity 0.25s;
}
.niche::before { left: 9px; }
.niche::after { right: 9px; }
.niche .pediment { position: absolute; top: 0; left: -1px; width: calc(100% + 2px); height: 62px; }
.niche .pediment path { fill: none; stroke: var(--gold); stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: 0.75; }
.niche .pediment .fill { fill: rgba(201, 162, 77, 0.07); stroke: none; }
.niche .numeral { position: absolute; top: 25px; left: 0; right: 0; font-family: var(--caps); font-size: 15px; letter-spacing: 0.2em; text-indent: 0.2em; color: var(--gold); }
.medallion {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 28%, #FFFFFF, var(--ivory) 55%, #DDD6C4);
  box-shadow: 0 0 0 2px var(--navy-2), 0 0 0 4px var(--gold), 0 0 0 10px rgba(201, 162, 77, 0.12), 0 14px 34px rgba(0, 0, 0, 0.45);
  margin-bottom: 26px;
  transition: box-shadow 0.25s;
}
.medallion img { width: 62%; height: 62%; object-fit: contain; }
.niche-name { font-family: var(--caps); font-size: 22px; font-weight: 500; letter-spacing: 0.16em; text-indent: 0.16em; color: var(--ivory); }
.niche-tag { font-style: italic; color: var(--gold-hi); font-size: 19px; margin: 6px 0 12px; }
.niche-desc { color: var(--muted); font-size: 17px; line-height: 1.5; flex: 1; }
.niche-cta { font-family: var(--caps); font-size: 12.5px; font-weight: 600; letter-spacing: 0.24em; color: var(--gold); margin: 22px 0 26px; transition: letter-spacing 0.25s, color 0.25s; }
.niche .plinth { align-self: stretch; margin: 0 -35px; height: 30px; border-top: 1px solid var(--gold); background: linear-gradient(180deg, rgba(201, 162, 77, 0.16), transparent); position: relative; opacity: 0.8; }
.niche .plinth::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: 0; height: 12px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line); background: rgba(201, 162, 77, 0.1); }
.niche:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(201, 162, 77, 0.13); }
.niche:hover::before, .niche:hover::after { opacity: 1; }
.niche:hover .medallion { box-shadow: 0 0 0 2px var(--navy-2), 0 0 0 4px var(--gold-hi), 0 0 0 12px rgba(201, 162, 77, 0.2), 0 0 44px rgba(201, 162, 77, 0.4); }
.niche:hover .niche-cta { letter-spacing: 0.34em; color: var(--gold-hi); }
.niche:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }

/* ---------- principles: four pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.pillar { position: relative; text-align: center; padding: 0 14px 30px; }
.pillar::before {
  content: "";
  position: absolute;
  inset: 34px 22% 0;
  background: repeating-linear-gradient(90deg, rgba(201, 162, 77, 0.2) 0 1px, transparent 1px 14px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 92%);
  mask-image: linear-gradient(180deg, #000, transparent 92%);
  z-index: -1;
}
.pillar .cap { height: 12px; margin: 0 6%; border-radius: 0 0 9px 9px; background: linear-gradient(180deg, var(--gold-hi), #B38A3A); }
.pillar .cap + .cap { height: 8px; margin: 6px 16% 26px; border-radius: 4px; opacity: 0.75; }
.pillar .numeral { font-family: var(--caps); color: var(--gold); letter-spacing: 0.2em; font-size: 15px; }
.pillar h3 { font-family: var(--caps); font-weight: 500; font-size: 19px; letter-spacing: 0.14em; color: var(--ivory); margin: 10px 0 2px; }
.pillar .latin { font-style: italic; color: var(--gold-hi); margin: 0 0 12px; }
.pillar p.body { color: var(--muted); font-size: 17px; line-height: 1.5; margin: 0; }

/* ---------- the name ---------- */
.name-grid { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 56px; align-items: center; }
.coin { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5)); }
.coin text { font-family: var(--caps); font-weight: 600; fill: var(--gold-hi); letter-spacing: 3px; }
.prose p { margin: 0 0 18px; }
.prose p:first-of-type::first-letter, .dropcap::first-letter {
  font-family: var(--caps);
  font-size: 3.5em;
  line-height: 0.82;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--gold);
}
blockquote.inscription {
  margin: 30px 0 0;
  padding: 22px 26px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(201, 162, 77, 0.1), transparent);
  font-size: 23px;
  font-style: italic;
  line-height: 1.45;
  color: var(--ivory);
}
blockquote.inscription cite { display: block; margin-top: 12px; font-family: var(--caps); font-style: normal; font-size: 12px; letter-spacing: 0.22em; color: var(--gold); }

/* ---------- app pages ---------- */
.crumb { display: inline-block; margin: 30px 0 0; font-family: var(--caps); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.crumb:hover { color: var(--gold-hi); }
.app-hero { text-align: center; padding: 34px 0 70px; }
.app-hero .wreath-wrap { position: relative; width: min(270px, 64vw); margin: 0 auto 26px; }
.app-hero .wreath-wrap svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 30px rgba(201, 162, 77, 0.2)); }
.app-hero .medallion { position: absolute; inset: 0; margin: auto; width: 50%; height: auto; aspect-ratio: 1; }
.app-hero h1 { font-family: var(--caps); font-weight: 500; font-size: clamp(36px, 7vw, 70px); letter-spacing: 0.12em; text-indent: 0.12em; margin: 0 0 10px; color: var(--ivory); line-height: 1.1; }
.app-hero .tagline { font-style: italic; font-size: clamp(22px, 3.2vw, 30px); color: var(--gold-hi); margin: 0 0 16px; }
.app-hero .lede { color: var(--text); max-width: 33em; margin: 0 auto 34px; font-size: 20px; }
.pitch { max-width: 720px; margin: 0 auto; font-size: 20px; }
.tablets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tablet {
  position: relative;
  padding: 34px 28px 30px;
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft);
  outline-offset: 5px;
  text-align: center;
}
.tablet .numeral { font-family: var(--caps); color: var(--gold); font-size: 26px; letter-spacing: 0.1em; }
.tablet h3 { font-family: var(--caps); font-weight: 500; font-size: 18px; letter-spacing: 0.12em; color: var(--ivory); margin: 10px 0 12px; line-height: 1.35; }
.tablet p { color: var(--muted); font-size: 17.5px; line-height: 1.5; margin: 0; }
.stat { text-align: center; max-width: 760px; margin: 0 auto; }
.stat .figure { font-family: var(--caps); font-size: clamp(64px, 12vw, 120px); line-height: 1; color: var(--gold-hi); background: linear-gradient(180deg, #F3E2AC, var(--gold) 60%, #A47D2E); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat p { font-size: 22px; margin: 14px 0 6px; }
.stat small { color: var(--muted); font-size: 15px; }
.cta-band { text-align: center; padding: 76px 0; }
.cta-band h2 { font-family: var(--caps); font-weight: 500; font-size: clamp(24px, 4.4vw, 40px); letter-spacing: 0.12em; color: var(--ivory); margin: 0 0 10px; }
.cta-band p { color: var(--muted); font-style: italic; margin: 0 0 30px; }
.fine { color: var(--muted); font-size: 15px; text-align: center; max-width: 46em; margin: 30px auto 0; }
.others { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0 60px; }
.others a { font-family: var(--caps); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.others a:hover { color: var(--gold-hi); }

/* ---------- text pages (privacy, support) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 0 70px; }
.doc h1 { font-family: var(--caps); font-weight: 500; font-size: clamp(30px, 5.4vw, 46px); letter-spacing: 0.12em; color: var(--ivory); margin: 0 0 8px; }
.doc .meta { color: var(--gold); font-style: italic; margin: 0 0 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.doc h2 { font-family: var(--caps); font-weight: 500; font-size: 18px; letter-spacing: 0.14em; color: var(--gold-hi); margin: 40px 0 10px; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.doc li { margin-bottom: 7px; padding-left: 26px; position: relative; }
.doc li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.contact-card { background: linear-gradient(180deg, var(--navy-3), var(--navy-2)); border: 1px solid var(--line); outline: 1px solid var(--line-soft); outline-offset: 5px; padding: 24px 26px; margin: 0 0 22px; }
.contact-card .label { font-family: var(--caps); color: var(--gold); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.contact-card .value { font-size: 23px; margin-top: 6px; word-break: break-word; }

/* ---------- footer ---------- */
.site-footer { text-align: center; padding: 44px 0 50px; color: var(--muted); }
.site-footer .mark { margin-bottom: 22px; }
.site-footer nav { display: flex; gap: 8px 28px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.site-footer nav a { font-family: var(--caps); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.site-footer nav a:hover { color: var(--gold-hi); }
.site-footer .legal { font-family: var(--caps); font-size: 11.5px; letter-spacing: 0.22em; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(18px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .rise.d1 { animation-delay: 0.12s; } .rise.d2 { animation-delay: 0.24s; } .rise.d3 { animation-delay: 0.36s; } .rise.d4 { animation-delay: 0.48s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .niche, .btn { transition: none; } }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .niches, .tablets { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .pillars { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .name-grid { grid-template-columns: 1fr; gap: 36px; }
  .coin { max-width: 280px; margin: 0 auto; display: block; }
  section.band { padding: 64px 0; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .wrap { padding: 0 18px; }
  .site-header .wrap { justify-content: center; }
  .site-nav { justify-content: center; gap: 4px 20px; }
  .hero { padding: 44px 0 60px; }
  .btn { padding: 14px 22px; font-size: 13px; }
  blockquote.inscription { font-size: 20px; padding: 18px 20px; }
}
