/* UNIQUE_STYLE: translation-dossier-editorial */
:root {
  --paper: #f4eadc;
  --panel: #fffaf2;
  --ink: #172233;
  --muted: #6e6257;
  --navy: #18314f;
  --blue: #2d5b86;
  --burgundy: #8b2c2c;
  --red: #8b2c2c;
  --line: rgba(66, 43, 28, .18);
  --soft: rgba(139, 44, 44, .10);
  --shadow: rgba(57, 35, 25, .16);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  background:
    radial-gradient(circle at 12% 8%, rgba(139, 44, 44, .13), transparent 22rem),
    radial-gradient(circle at 82% 5%, rgba(45, 91, 134, .12), transparent 24rem),
    repeating-linear-gradient(0deg, rgba(66, 43, 28, .025) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #fbf3e8 0%, #efe0ce 54%, #f8f0e6 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(66, 43, 28, .05) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .38;
  z-index: -1;
}

a { color: inherit; }
a:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(139, 44, 44, .16);
}

.harbor-header {
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: calc(var(--max) + 36px);
  margin: 16px auto 0;
  width: calc(100% - 28px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 250, 242, .9);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 45px var(--shadow);
  backdrop-filter: blur(16px);
}
.harbor-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.harbor-brand span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--burgundy); color: #fffaf2; font-weight: 900; letter-spacing: .06em;
}
.harbor-brand strong { color: var(--navy); }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
nav a { text-decoration: none; color: var(--muted); font-weight: 800; font-size: .9rem; padding: 8px 10px; border-radius: 999px; }
nav a:hover { background: var(--soft); color: var(--burgundy); }

main { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
section { margin: clamp(58px, 8vw, 100px) 0; }
.dossier-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(24px, 3.2vw, 42px);
  margin-bottom: clamp(52px, 7vw, 90px);
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(350px, 500px);
  gap: clamp(18px, 3.2vw, 36px);
  align-items: center;
  padding: clamp(28px, 4.8vw, 56px);
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    radial-gradient(circle at 80% 22%, rgba(45, 91, 134, .10), transparent 18rem),
    linear-gradient(104deg, rgba(255, 250, 242, .96) 0%, rgba(255, 250, 242, .84) 50%, rgba(247, 235, 219, .70) 100%);
  box-shadow: 0 28px 80px rgba(57, 35, 25, .12);
}
.dossier-shell::before {
  content: "";
  position: absolute;
  inset: clamp(14px, 2vw, 24px);
  border: 1px solid rgba(66, 43, 28, .16);
  border-left: 7px solid rgba(139, 44, 44, .58);
  border-radius: 28px;
  z-index: -1;
}
.harbor-kicker {
  margin: 0 0 12px;
  color: var(--burgundy);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  font-size: .74rem;
}
h1, h2, h3 { line-height: 1.02; color: var(--navy); }
h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  max-width: 15.4ch;
  font-size: clamp(2.35rem, 4vw, 4.25rem);
  letter-spacing: -.06em;
}
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.055em; margin: 0 0 14px; }
h3 { margin: 0 0 9px; font-size: 1.08rem; }
.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(10px, 1.8vw, 22px) 0;
}
.hero-copy > p:not(.harbor-kicker) { max-width: 58ch; color: var(--muted); font-size: 1.09rem; }
.hero-cert-row {
  width: min(100%, 520px);
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto minmax(82px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 5px solid rgba(139, 44, 44, .72);
  border-radius: 18px;
  background: rgba(255, 250, 242, .76);
  box-shadow: 0 14px 34px rgba(57, 35, 25, .09);
}
.hero-cert-row .case-tag { margin: 0; font-size: .66rem; white-space: nowrap; }
.hero-cert-row .redacted-lines { margin: 0; display: grid; gap: 5px; }
.hero-cert-row .redacted-lines span { height: 6px; opacity: .18; }
.hero-cert-row .cert-stamp {
  padding: 5px 8px;
  border-width: 2px;
  font-size: .68rem;
  line-height: 1;
  white-space: nowrap;
}
@media (min-width: 981px) {
  .hero-copy { margin-right: -44px; }
}
.harbor-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-copy .harbor-actions { margin-top: 22px; }
.harbor-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  font-size: .92rem;
  background: var(--burgundy);
  color: #fffaf2;
  box-shadow: 0 18px 38px rgba(139, 44, 44, .22);
}
.harbor-button.secondary { background: #fffaf2; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }

.visual-stack { position: relative; z-index: 1; padding: 0; }
.photo-frame, .cert-panel, .case-file, .service-classes article, .matrix-table, .process-docket li, .credential-band article, .scope-case, .contact-case {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, .9);
  box-shadow: 0 24px 70px var(--shadow);
}
.photo-frame { position: relative; margin: 0; border-radius: 30px; overflow: hidden; transform: rotate(.55deg); }
.photo-frame img { display: block; width: 100%; height: clamp(390px, 42vw, 492px); object-fit: cover; }
.photo-frame figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.2;
  background: rgba(255, 250, 242, .92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(23, 34, 51, .12);
}
.cert-panel {
  width: min(92%, 430px);
  margin: 18px 0 0 auto;
  position: relative;
  padding: 24px;
  border-radius: 24px;
  border-left: 7px solid var(--burgundy);
}
.case-tag { display: inline-block; margin-bottom: 12px; font-weight: 900; color: var(--burgundy); letter-spacing: .08em; }
.cert-panel h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
.cert-panel dl { margin: 20px 0; display: grid; gap: 10px; }
.cert-panel div { display: grid; grid-template-columns: .72fr 1.2fr; gap: 10px; }
.cert-panel dt { color: var(--burgundy); font-weight: 900; }
.cert-panel dd { margin: 0; color: var(--muted); }
.redacted-lines { display: grid; gap: 8px; margin: 16px 0; }
.redacted-lines span { height: 10px; background: linear-gradient(90deg, var(--navy), transparent); border-radius: 999px; opacity: .22; }
.cert-stamp { display: inline-block; border: 3px solid var(--burgundy); color: var(--burgundy); padding: 8px 12px; border-radius: 999px; transform: rotate(-3deg); }

.case-file { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; padding: clamp(22px, 4vw, 38px); border-radius: 30px; }
.document-photo { margin: 0; border-radius: 22px; overflow: hidden; }
.document-photo img { display: block; width: 100%; height: 360px; object-fit: cover; }
.service-checklist { padding: 0; margin: 22px 0 0; display: grid; gap: 10px; list-style: none; color: var(--muted); }
.service-checklist li { padding-left: 24px; position: relative; }
.service-checklist li::before { content: "§"; position: absolute; left: 0; color: var(--burgundy); font-weight: 900; }
.section-heading { max-width: 760px; }
.service-classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-classes .section-heading { grid-column: 1 / -1; }
.service-classes article { padding: 24px; border-radius: 24px; }
.service-classes span, .process-docket li span { color: var(--burgundy); font-weight: 900; letter-spacing: .12em; }
.service-classes p, .process-docket p, .credential-band p, .scope-case p, .contact-case p { color: var(--muted); }
.matrix-table { border-radius: 26px; overflow: hidden; }
.matrix-table [role="row"] { display: grid; grid-template-columns: .72fr 1.35fr 1.15fr .72fr; }
.matrix-table span { padding: 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--muted); }
.matrix-table .matrix-head span { background: var(--navy); color: #fffaf2; font-weight: 900; }
.process-docket ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.process-docket li { padding: 22px; border-radius: 22px; }
.credential-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.credential-band article { padding: 22px; border-radius: 22px; }
.credential-band strong { color: var(--navy); }
.scope-case, .contact-case { padding: clamp(24px, 4vw, 40px); border-radius: 30px; }
.contact-case { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
footer { width: min(var(--max), calc(100% - 32px)); margin: 60px auto 28px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
footer a { font-weight: 900; color: var(--burgundy); }

@media (max-width: 980px) {
  .dossier-shell, .case-file { grid-template-columns: 1fr; }
  .visual-stack { max-width: 620px; margin: 0 auto; }
  .service-classes, .credential-band, .process-docket ol { grid-template-columns: 1fr; }
  .contact-case { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
  .harbor-header, footer { flex-direction: column; align-items: flex-start; }
  nav { justify-content: flex-start; }
  main { width: calc(100% - 22px); }
  section { margin: 48px 0; }
  h1 { font-size: clamp(2.12rem, 11.5vw, 3.15rem); }
  .photo-frame { transform: none; }
  .photo-frame img { height: 350px; }
  .cert-panel { margin: -22px auto 0; width: calc(100% - 18px); }
  .cert-panel div { grid-template-columns: 1fr; }
  .harbor-actions, .harbor-button { width: 100%; }
  .matrix-table .matrix-head { display: none; }
  .matrix-table [role="row"] { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .matrix-table span { display: block; border: 0; padding: 8px 16px; }
  .matrix-table span::before { content: attr(data-label) ": "; color: var(--burgundy); font-weight: 900; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }


/* Shared demo navigation back to the Website Development page. */
.wd-back-link {
  position: sticky;
  top: 12px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 12px 0 0 max(12px, calc((100vw - var(--max, 1120px)) / 2));
  padding: 0.58rem 0.86rem;
  border: 1px solid rgba(30, 40, 34, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  font: 800 0.86rem/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(30, 40, 34, 0.12);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.wd-back-link:hover,
.wd-back-link:focus-visible,
.footer-back-to-web-development:hover,
.footer-back-to-web-development:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
}

.footer-back-to-web-development {
  display: inline-flex;
  margin-left: 1rem;
  font-weight: 900;
}

@media (max-width: 660px) {
  .wd-back-link {
    margin-left: 11px;
    max-width: calc(100vw - 22px);
  }

  .footer-back-to-web-development {
    display: inline-flex;
    margin-left: 0;
    margin-top: 0.7rem;
  }
}
