/* Prima Aventura LLC */

:root {
  --paper: #F3EEE4;
  --paper-deep: #E9E1D2;
  --ink: #1B1814;
  --ink-soft: #5E554B;
  --rule: #CDBFA9;
  --accent: #6B1E23;
  --accent-hover: #561418;
  --selection: #E4C9C2;
  --grain-opacity: 0.35;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --label: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16120F;
    --paper-deep: #1F1915;
    --ink: #EDE5D6;
    --ink-soft: #A89C8C;
    --rule: #3C332B;
    --accent: #C9646B;
    --accent-hover: #DA7D83;
    --selection: #4A2427;
    --grain-opacity: 0.18;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #16120F;
  --paper-deep: #1F1915;
  --ink: #EDE5D6;
  --ink-soft: #A89C8C;
  --rule: #3C332B;
  --accent: #C9646B;
  --accent-hover: #DA7D83;
  --selection: #4A2427;
  --grain-opacity: 0.18;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(17px, 1.05vw + 12px, 20px);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .28 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body::before { mix-blend-mode: screen; }
}

::selection { background: var(--selection); color: var(--ink); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 200;
  font-family: var(--label); font-size: 14px;
}
.skip:focus { left: 16px; top: 16px; }

/* labels */
.label {
  font-family: var(--label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- masthead ---------- */
.masthead {
  border-bottom: 1px solid var(--rule);
}
.masthead__rule { border-bottom: 1px solid var(--rule); }
.masthead__top {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; padding-bottom: 14px;
}
.masthead__top .label { font-size: 11px; }
.masthead__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 22px; padding-bottom: 22px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 46px; height: 46px; color: var(--accent); flex: none; }
.brand__name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__name small {
  display: block; margin-top: 6px;
  font-family: var(--label); font-size: 10px; font-weight: 600;
  letter-spacing: 0.32em; color: var(--ink-soft);
}
.nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav a {
  font-family: var(--label); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: border-color .25s, color .25s;
}
.nav a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.5vw, 32px);
  align-items: center;
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(64px, 10vw, 140px);
}
.hero__text { grid-column: 1 / span 7; }
.hero__seal {
  grid-column: 9 / span 4;
  color: var(--accent);
  position: relative;
}
.hero__seal svg { width: 100%; height: auto; }
.hero__seal .seal-ring { transform-origin: 50% 50%; animation: turn 140s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

.hero__kicker { margin: 0 0 28px; display: flex; align-items: center; gap: 14px; }
.hero__kicker::before { content: ""; width: 40px; height: 1px; background: var(--accent); }

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 7.4vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__lede {
  font-size: clamp(19px, 1.5vw + 10px, 24px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 0 40px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--label); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 16px 26px;
  background: var(--accent); color: var(--paper);
  border: 1px solid var(--accent);
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--paper); }
.btn svg { width: 16px; height: 16px; transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.link-quiet {
  font-family: var(--label); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--rule); padding-bottom: 4px;
}

/* ---------- ticker strip ---------- */
.strip {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.strip__inner {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.strip__item {
  padding: 22px 0 22px 0;
  border-right: 1px solid var(--rule);
  padding-left: clamp(0px, 1.6vw, 22px);
}
.strip__item:first-child { padding-left: 0; }
.strip__item:last-child { border-right: 0; }
.strip__item b {
  display: block;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15;
  margin-top: 6px;
}

/* ---------- sections ---------- */
.section { padding-top: clamp(80px, 11vw, 160px); }
.section__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.5vw, 32px);
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section__num {
  grid-column: 1 / span 2;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(40px, 5vw, 72px); line-height: 0.9;
  color: var(--accent);
}
.section__title {
  grid-column: 3 / span 7;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 64px); line-height: 1;
  letter-spacing: -0.015em;
  margin: 0;
}
.section__aside { grid-column: 10 / span 3; text-align: right; margin: 0; }

/* practice */
.practice__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.5vw, 32px);
  margin-bottom: clamp(48px, 7vw, 96px);
}
.practice__intro p {
  grid-column: 3 / span 8;
  font-size: clamp(22px, 1.6vw + 12px, 32px);
  line-height: 1.38;
  margin: 0;
  text-wrap: pretty;
}
.dropcap::first-letter {
  font-family: var(--display);
  font-weight: 500;
  float: left;
  font-size: 3.6em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  color: var(--accent);
}
.practice__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.practice__col {
  padding: 32px clamp(16px, 2.4vw, 36px) 8px;
  border-right: 1px solid var(--rule);
}
.practice__col:first-child { padding-left: 0; }
.practice__col:last-child { border-right: 0; padding-right: 0; }
.practice__col h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(26px, 2.2vw, 32px); line-height: 1.1;
  margin: 14px 0 16px;
}
.practice__col p { margin: 0 0 16px; color: var(--ink-soft); }
.practice__col .status {
  display: inline-block;
  font-family: var(--label); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 8px;
  margin-top: 4px;
}

/* work */
.work { list-style: none; margin: 0; padding: 0; }
.work__item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.5vw, 32px);
  padding: clamp(36px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.work__item:first-child { padding-top: 0; }
.work__num {
  grid-column: 1 / span 2;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 7vw, 104px); line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}
.work__main { grid-column: 3 / span 6; }
.work__name {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(38px, 4.4vw, 62px); line-height: 1;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.work__sector { margin: 0 0 22px; color: var(--accent); }
.work__desc { margin: 0 0 24px; max-width: 46ch; }
.work__link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--label); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 4px;
  color: var(--ink);
}
.work__link svg { width: 14px; height: 14px; transition: transform .25s; }
.work__link:hover svg { transform: translate(3px, -3px); }
.work__meta {
  grid-column: 10 / span 3;
  margin: 0;
  align-self: start;
  padding-top: 8px;
}
.work__meta div { padding: 12px 0; border-top: 1px solid var(--rule); }
.work__meta div:last-child { border-bottom: 1px solid var(--rule); }
.work__meta dt { margin-bottom: 4px; font-size: 11px; }
.work__meta dd { margin: 0; font-size: 16px; line-height: 1.45; }

/* company colophon */
.company {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.5vw, 32px);
  align-items: start;
}
.company__seal { grid-column: 1 / span 4; color: var(--accent); max-width: 340px; }
.company__facts { grid-column: 6 / span 7; margin: 0; }
.company__facts div {
  display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 20px;
  padding: 20px 0; border-top: 1px solid var(--rule);
  align-items: baseline;
}
.company__facts div:last-child { border-bottom: 1px solid var(--rule); }
.company__facts dd {
  margin: 0;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(20px, 1.6vw, 24px); line-height: 1.3;
  overflow-wrap: anywhere;
}
.company__facts dd a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.company__facts dd a:hover { border-color: var(--accent); }

/* contact */
.contact {
  margin-top: clamp(80px, 11vw, 160px);
  background: var(--accent);
  color: #F3EEE4;
  position: relative;
  overflow: hidden;
}
.contact__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.5vw, 32px);
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(72px, 10vw, 140px);
  position: relative;
}
.contact .label { color: rgba(243, 238, 228, 0.72); }
.contact__text { grid-column: 1 / span 8; }
.contact h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 7vw, 104px); line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 18px 0 28px;
}
.contact h2 em { font-style: italic; }
.contact p { max-width: 40ch; margin: 0 0 40px; color: rgba(243, 238, 228, 0.86); }
.contact__mail {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 3.2vw, 44px); line-height: 1.1;
  color: #F3EEE4; text-decoration: none;
  border-bottom: 1px solid rgba(243, 238, 228, 0.5);
  padding-bottom: 6px;
  overflow-wrap: anywhere;
  transition: border-color .25s;
}
.contact__mail:hover { color: #fff; border-color: #fff; }
.contact__watermark {
  position: absolute;
  right: calc(var(--gutter) * -1 - 6vw);
  top: 50%; transform: translateY(-50%);
  width: min(44vw, 560px);
  color: rgba(243, 238, 228, 0.12);
  pointer-events: none;
}
.contact__watermark svg { width: 100%; height: auto; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact { background: #3A1417; }
}
:root[data-theme="dark"] .contact { background: #3A1417; }

/* footer */
.footer { padding: 56px 0 64px; }
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__mark { width: 52px; height: 52px; color: var(--accent); flex: none; }
.footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px;
}
.footer__legal { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.footer__legal strong { color: var(--ink); font-weight: 500; letter-spacing: 0.04em; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a {
  font-family: var(--label); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
}

/* ---------- legal pages ---------- */
.doc {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.5vw, 32px);
  padding-top: clamp(56px, 8vw, 110px);
  padding-bottom: clamp(64px, 9vw, 120px);
}
.doc__head { grid-column: 1 / -1; border-bottom: 1px solid var(--ink); padding-bottom: 32px; margin-bottom: clamp(40px, 6vw, 72px); }
.doc__head h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 92px); line-height: 1; letter-spacing: -0.02em;
  margin: 18px 0 18px;
}
.doc__head p { margin: 0; color: var(--ink-soft); }
.doc__toc { grid-column: 1 / span 3; position: sticky; top: 32px; align-self: start; }
.doc__toc ol { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: toc; }
.doc__toc li { counter-increment: toc; border-top: 1px solid var(--rule); }
.doc__toc a {
  display: flex; gap: 12px; padding: 10px 0;
  font-size: 15px; line-height: 1.35; text-decoration: none; color: var(--ink-soft);
}
.doc__toc a::before { content: counter(toc, upper-roman) "."; min-width: 2.2em; font-family: var(--display); font-style: italic; color: var(--accent); }
.doc__toc a:hover { color: var(--ink); }
.doc__body { grid-column: 5 / span 7; max-width: 66ch; counter-reset: sec; }
.doc__body > p:first-child { font-size: 1.15em; }
.doc__body h2 {
  counter-increment: sec;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2;
  margin: 56px 0 16px;
  scroll-margin-top: 24px;
}
.doc__body h2::before {
  content: counter(sec, upper-roman) ".";
  display: block; margin-bottom: 6px;
  font-style: italic; font-weight: 400; font-size: 0.8em; color: var(--accent);
}
.doc__body p, .doc__body li { margin: 0 0 14px; }
.doc__body ul { padding-left: 1.2em; margin: 0 0 18px; }
.doc__body li::marker { color: var(--accent); }
.doc__body address { font-style: normal; padding: 18px 0 18px 22px; border-left: 2px solid var(--accent); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__seal .seal-ring { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__text { grid-column: 1 / -1; }
  .hero__seal { grid-column: 1 / -1; grid-row: 1; width: 180px; margin-bottom: 40px; }
  .strip__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip__item:nth-child(2) { border-right: 0; }
  .strip__item:nth-child(3) { padding-left: 0; }
  .strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .section__num { grid-column: 1 / -1; margin-bottom: 14px; }
  .section__title { grid-column: 1 / -1; }
  .section__aside { grid-column: 1 / -1; text-align: left; margin-top: 14px; }
  .practice__intro p { grid-column: 1 / -1; }
  .practice__cols { grid-template-columns: 1fr; }
  .practice__col { padding: 28px 0 12px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .practice__col:last-child { border-bottom: 0; }
  .work__num { grid-column: 1 / -1; margin-bottom: 16px; }
  .work__main { grid-column: 1 / -1; }
  .work__meta { grid-column: 1 / -1; padding-top: 28px; }
  .company__seal { grid-column: 1 / -1; max-width: 200px; margin-bottom: 40px; }
  .company__facts { grid-column: 1 / -1; }
  .contact__text { grid-column: 1 / -1; }
  .contact__watermark { width: 70vw; right: -30vw; }
  .doc__toc { grid-column: 1 / -1; position: static; margin-bottom: 32px; }
  .doc__body { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .masthead__top .label:last-child { display: none; }
  .masthead__bar { flex-wrap: wrap; }
  .brand__name { font-size: 18px; }
  .brand__mark { width: 40px; height: 40px; }
  .nav { width: 100%; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: 14px; }
  .nav a { font-size: 12px; }
  .company__facts div { grid-template-columns: 1fr; gap: 6px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .strip__item b { font-size: 18px; padding-right: 8px; }
}
