/* Trima – one stylesheet, no external resources (no fonts, no trackers). */
:root {
  color-scheme: dark;
  /* Bronze from the Justitia logo; --bg matches the logo's dark edge. */
  --bg: #080605;
  --bg-raised: #100c0a;
  --bg-panel: #15100d;
  --line: #2a221c;
  --line-strong: #3a2f26;
  --text: #f1ebe4;
  --muted: #a89b8e;
  --faint: #7a6e63;
  --bronze: #d29a6a;
  --bronze-light: #f0c49b;
  --virentio: #8b5cff;
  --locentio: #f5a54a;
  --exemptio: #22e3f0;
  --radius: 10px;
  --max: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze); text-underline-offset: 3px; }
a:hover { color: var(--bronze-light); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 88px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  letter-spacing: .18em; text-transform: uppercase; font-size: 12px; font-weight: 600;
  color: var(--bronze); margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 6, 5, .86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
          backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header { transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(8, 6, 5, .94); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .9); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .emblem {
  width: 44px; height: 44px; border-radius: 8px;
  border: 1px solid var(--line-strong);
}
.brand .word { width: 118px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav .lang {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 3px 11px; font-size: 13px; letter-spacing: .06em;
}

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  /* Soft bronze light that drifts slowly behind the hero. */
  content: ""; position: absolute; inset: -40% -25% auto auto; width: 80%; height: 160%;
  background: radial-gradient(closest-side, rgba(210, 154, 106, .16), transparent 70%);
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}
.hero::after {
  /* Fine bronze hairline along the bottom edge. */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 154, 106, .55), transparent);
}
.eyebrow .rule { display: inline-block; width: 28px; height: 1px; background: var(--bronze); vertical-align: middle; margin-right: 12px; }

/* Framed Justitia artwork */
.hero-art { margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.hero-art .frame {
  position: relative; padding: 10px;
  border: 1px solid rgba(210, 154, 106, .35); border-radius: 4px;
  background: linear-gradient(160deg, rgba(210, 154, 106, .08), transparent 40%);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .6) inset;
  will-change: transform;
}
.hero-art .frame::before {
  /* Inner hairline, like a passe-partout. */
  content: ""; position: absolute; inset: 4px; border: 1px solid rgba(210, 154, 106, .14); border-radius: 2px; pointer-events: none;
}
.hero-art picture { display: block; overflow: hidden; border-radius: 2px; }
.hero-art img { width: 100%; transform: scale(1.06); transition: transform 2.4s cubic-bezier(.2, .7, .2, 1); }
.ready .hero-art.in img { transform: scale(1); }
.hero-art .sheen {
  position: absolute; inset: 10px; overflow: hidden; pointer-events: none; border-radius: 2px;
}
.hero-art .sheen::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 220, 180, .10), transparent);
  transform: skewX(-12deg);
  animation: sheen 9s ease-in-out 2.5s infinite;
}
.hero .wrap { position: relative; padding-top: 104px; padding-bottom: 104px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08;
  margin: 0 0 26px; max-width: 760px;
  -webkit-hyphens: manual; hyphens: manual; overflow-wrap: break-word;
}
.hero .lead { color: var(--muted); font-size: 19px; max-width: 620px; margin: 0 0 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 6px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--bronze);
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { position: relative; overflow: hidden; background: linear-gradient(180deg, #dcaa7c, var(--bronze)); color: #1a110a; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-15deg); transition: left .7s ease;
}
.btn-primary:hover::after { left: 120%; }
.btn-primary:hover { background: var(--bronze-light); border-color: var(--bronze-light); color: #1a110a; }
.btn-secondary { color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--bronze); color: var(--text); }

/* Key facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-bottom: 1px solid var(--line); }
.fact { padding: 28px 32px 28px 0; }
.fact + .fact { padding-left: 32px; border-left: 1px solid var(--line); }
.fact dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.fact dd { margin: 0; font-size: 16px; color: var(--text); }
.fact dd a { color: var(--text); text-decoration: none; }
.fact dd a:hover { color: var(--bronze-light); }

/* Sections */
section { padding: 104px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 0; }
.section-head p { color: var(--muted); max-width: 420px; margin: 0; }

.companies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.company {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: border-color .2s;
}
.company, .contact-panel { position: relative; isolation: isolate; }
.company:hover { border-color: rgba(210, 154, 106, .35); transform: translateY(-3px); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9); }
.company { transition: border-color .3s, transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s, opacity .9s, filter .9s; }
[data-spot]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(210, 154, 106, .09), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
[data-spot]:hover::before { opacity: 1; }
.company .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.company .top img { width: 44px; }
.company .num { font-family: var(--serif); color: var(--faint); font-size: 15px; }
.company h3 { margin: 0; font-size: 22px; letter-spacing: .08em; font-family: inherit; font-weight: 700; }
.company .field { color: var(--accent); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 16px; font-weight: 600; }
.company p.desc { color: var(--muted); margin: 0 0 28px; font-size: 16px; }
.company .status {
  margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.company .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.company .status a { color: var(--text); text-decoration: none; }
.company .status a:hover { color: var(--accent); }
.company.virentio { --accent: var(--virentio); }

/* VIRENTIO lead card: full width, text left, services right. */
.company.featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px;
  padding: 44px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(139, 92, 255, .10), transparent 55%),
    var(--bg-raised);
}
.company.featured .top { align-self: stretch; }
.company.featured .top img { width: 52px; }
.company.featured h3 { font-size: 28px; }
.company.featured p.desc { font-size: 18px; color: var(--text); opacity: .86; max-width: 520px; }
.featured-main { display: flex; flex-direction: column; align-items: flex-start; }
.btn-accent { border-color: var(--accent); color: var(--text); gap: 8px; margin-top: auto; }
.btn-accent:hover { background: var(--accent); color: #fff; }
.featured-services { border-left: 1px solid var(--line); padding-left: 48px; }
.services-title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 4px 0 18px; font-weight: 600; }
.services { list-style: none; margin: 0; padding: 0; }
.services li {
  position: relative; padding: 13px 0 13px 26px; border-bottom: 1px solid var(--line);
  color: var(--text); font-size: 16px;
}
.services li:last-child { border-bottom: 0; }
.services li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 2px; background: var(--accent);
}
.company.locentio { --accent: var(--locentio); }
.company.exemptio { --accent: var(--exemptio); }

/* Contact */
.contact-panel {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 56px;
}
.contact-panel h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 0 0 14px; }
.contact-panel p { color: var(--muted); margin: 0; }
.contact-panel .mail-box { justify-self: end; text-align: right; }
.contact-panel .mail { display: block; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); color: var(--text); text-decoration: none; margin-bottom: 18px; }
.contact-panel .mail:hover { color: var(--bronze-light); }

/* Legal page */
.page { padding: 88px 0 104px; max-width: 720px; }
.page h1 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 28px; }
.page h2 { font-size: 21px; margin: 40px 0 10px; }
.page p { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-grid .brand { margin-bottom: 16px; }
.footer-grid .brand .emblem { width: 36px; height: 36px; }
.footer-grid .brand .word { width: 96px; }
.footer-grid p { margin: 0; max-width: 280px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); }


/* Grain over everything, very faint – gives the dark surfaces some material. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reveal: only when JS is running, so nothing stays hidden without it. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); filter: blur(4px); }
.js [data-reveal].in {
  opacity: 1; transform: none; filter: none;
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), filter .9s ease var(--d, 0s);
}
.js .company[data-reveal].in:hover { transform: translateY(-3px); transition-delay: 0s; }
[data-words] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-words] .w > span { display: inline-block; }
.js [data-words] .w > span { transform: translateY(105%); opacity: 0; }
.js.ready [data-words] .w > span {
  transform: none; opacity: 1;
  transition: transform 1s cubic-bezier(.2, .8, .2, 1) calc(.15s + var(--i) * .045s), opacity .6s ease calc(.15s + var(--i) * .045s);
}
.eyebrow .rule { transform-origin: left; }
.js .eyebrow[data-reveal] .rule { transform: scaleX(0); }
.js .eyebrow[data-reveal].in .rule { transform: scaleX(1); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) .3s; }

@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-12%, 10%) scale(1.15); } }
@keyframes sheen { 0% { left: -60%; } 30%, 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-words] .w > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-art img { transform: none; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-art { justify-self: start; max-width: 380px; }
  .companies { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; padding: 40px; }
  .company.featured { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .featured-services { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .btn-accent { margin-top: 8px; }
  .contact-panel .mail-box { justify-self: start; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .section-head { flex-direction: column; align-items: start; gap: 12px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .site-header .wrap { height: 64px; }
  .brand .emblem { width: 38px; height: 38px; }
  .brand .word { width: 96px; }
  .nav { gap: 18px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .hero .wrap { padding-top: 72px; padding-bottom: 64px; }
  .hero-art { max-width: 100%; }
  .hero h1 { font-size: 31px; }
  .hero .lead { font-size: 17px; }
  .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 18px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  section { padding: 72px 0; }
  .company, .company.featured { padding: 26px; }
  .contact-panel { padding: 28px; }
}
