/* AT Legal: concept 6 page with concept 9 logo.
   Light stone ground, deep navy ink, silver-blue accent. */
:root {
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --ink: #12233F;
  --ink-soft: #3E4B63;
  --accent: #7F8DA3;
  --accent-strong: #5D6C85;
  --line: #D8DCE3;
  --navy: #12233F;
  --navy-deep: #0C1830;
  --on-navy: #EEF0F4;

  --f-logo: "Italiana", "Playfair Display", Georgia, serif;
  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1160px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --radius: 2px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 820px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--on-navy); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font: 600 14px/1 var(--f-body);
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--ink); border-radius: var(--radius);
  cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--ink); color: var(--on-navy); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 12px; }

/* ---------- Logo ---------- */
.mark text { font-family: var(--f-logo); font-size: 60px; fill: var(--ink); }
.mark .m-rule, .mark .m-line { stroke: var(--accent); stroke-width: 1.2; fill: none; }
.mark .m-dia { fill: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 44px; height: 44px; }
.brand-name { font-family: var(--f-logo); font-size: 22px; letter-spacing: .3em; text-transform: uppercase; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.phone { font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-toggle .bar { width: 18px; height: 1.5px; background: var(--ink); display: block; transition: transform .2s ease; }
.menu-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 1020px) {
  .header-actions .btn { display: none; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header-actions { margin-left: auto; }
}
@media (max-width: 480px) {
  .brand-name { font-size: 18px; letter-spacing: .22em; }
  .phone { font-size: 15px; }
  .header-actions { gap: 10px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 10vw, 120px) clamp(48px, 7vw, 88px); text-align: center; }
.hero-inner { display: grid; justify-items: center; gap: 22px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 72px); max-width: 15ch; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-soft); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.divider { width: 100%; max-width: 520px; position: relative; height: 12px; margin-block: 28px 8px; }
.divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--accent); }
.divider span { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; background: var(--accent); transform: translate(-50%, -50%) rotate(45deg); }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; width: 100%; max-width: 980px; text-align: left; }
.hero-points li { border-top: 1px solid var(--accent); padding-top: 16px; display: grid; gap: 6px; }
.hero-points strong { font-family: var(--f-display); font-weight: 500; font-size: 21px; }
.hero-points span { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 720px) { .hero-points { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--surface); }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 680px; }
.section-head h2, .about h2, .contact h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { color: var(--ink-soft); }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { padding: 32px 30px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; background: var(--bg); transition: background-color .2s ease; }
.service:hover { background: var(--surface); }
.service h3 { font-size: 23px; }
.service p { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-text { display: grid; gap: 18px; max-width: 62ch; }
.about-text p { color: var(--ink-soft); }
.facts { margin: 0; display: grid; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong); font-weight: 600; padding-top: 2px; }
.facts dd { margin: 0; }
.facts a { text-decoration: none; font-weight: 600; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--ink); }
.steps li::before { content: counter(step, upper-roman) "."; font-family: var(--f-display); font-size: 18px; color: var(--accent-strong); }
.steps h3 { font-size: 24px; }
.steps p { color: var(--ink-soft); }
.principles { list-style: none; margin: 56px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 40px; color: var(--ink-soft); }
.principles strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--f-display); font-size: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 1.5px solid var(--accent-strong); border-bottom: 1.5px solid var(--accent-strong); transform: rotate(45deg); transition: transform .2s ease; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 65ch; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: var(--on-navy); }
.contact h2 { color: var(--on-navy); }
.contact .eyebrow { color: #A9B5C8; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-info > p { color: #C9D0DC; max-width: 52ch; }
.contact-list { margin: 12px 0 0; display: grid; border-top: 1px solid rgba(238, 240, 244, .25); }
.contact-list div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(238, 240, 244, .15); }
.contact-list dt { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #A9B5C8; font-weight: 600; padding-top: 2px; }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: none; font-weight: 600; font-size: 19px; }

.form { background: var(--surface); color: var(--ink); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; border-radius: var(--radius); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.field [aria-invalid="true"] { border-color: #9B2C2C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15px; color: var(--ink-soft); align-items: start; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); }
.form .btn { justify-self: start; }
.form-status { min-height: 1.5em; font-size: 15px; }
.form-status.ok { color: #22543D; }
.form-status.err { color: #9B2C2C; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .facts div, .contact-list div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #B8C1D0; padding-block: 48px 32px; font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(238, 240, 244, .12); }
.footer-brand { font-family: var(--f-logo); font-size: 24px; letter-spacing: .3em; text-transform: uppercase; color: var(--on-navy); margin-bottom: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer-links a { text-decoration: none; color: var(--on-navy); }
.footer-links a:hover { text-decoration: underline; }
.footer-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; font-size: 13px; color: #8E99AD; }

/* ---------- Legal text page ---------- */
.doc { padding-block: 56px 96px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 24px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); max-width: 70ch; }
.doc p + p { margin-top: 12px; }

/* ---------- First-load logo animation ---------- */
.loader { display: none; }
.intro .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  transition: opacity .9s ease, visibility .9s ease;
}
.intro body { overflow: hidden; }
.intro.intro-done .loader { opacity: 0; visibility: hidden; }
.intro.intro-done body { overflow: auto; }
.loader-inner { display: grid; justify-items: center; gap: 18px; transition: transform .9s ease; }
.intro-done .loader-inner { transform: translateY(-12px) scale(.96); }
.mark-lg { width: min(190px, 44vw); height: min(190px, 44vw); overflow: visible; }
.mark-lg .m-line { stroke-dasharray: 1 1; stroke-width: 1; }
.wordmark { display: grid; justify-items: center; gap: 10px; text-align: center; }
.wm-name { font-family: var(--f-logo); font-size: clamp(30px, 6vw, 46px); letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; line-height: 1; }
.wm-tag { font-size: 12px; letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; color: var(--ink-soft); }

.mark-lg .m-a, .mark-lg .m-t, .mark-lg .m-dia { transform-box: fill-box; transform-origin: center; }
.intro .mark-lg .m-a { animation: atl-slide-l 1.2s cubic-bezier(.2,.7,.2,1) .15s both; }
.intro .mark-lg .m-t { animation: atl-slide-r 1.2s cubic-bezier(.2,.7,.2,1) .15s both; }
.intro .mark-lg .m-dia { animation: atl-pop .55s cubic-bezier(.3,1.4,.5,1) .45s both; }
.intro .mark-lg .m-line { animation: atl-draw 1.4s cubic-bezier(.65,.05,.25,1) .65s both; }
.intro .wm-name { animation: atl-track 1.5s cubic-bezier(.2,.7,.2,1) 1.1s both; }
.intro .wm-tag { animation: atl-fade 1s ease 1.8s both; }

@keyframes atl-slide-l { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes atl-slide-r { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes atl-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes atl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes atl-track { from { opacity: 0; letter-spacing: .8em; } to { opacity: 1; letter-spacing: .3em; } }
@keyframes atl-fade { from { opacity: 0; } to { opacity: 1; } }

/* Page content settles in after the logo. */
.intro .hero-inner > * { animation: atl-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.intro .hero-inner > *:nth-child(1) { animation-delay: 3.0s; }
.intro .hero-inner > *:nth-child(2) { animation-delay: 3.1s; }
.intro .hero-inner > *:nth-child(3) { animation-delay: 3.2s; }
.intro .hero-inner > *:nth-child(4) { animation-delay: 3.3s; }
.intro .hero-inner > *:nth-child(5) { animation-delay: 3.4s; }
.intro .hero-inner > *:nth-child(6) { animation-delay: 3.5s; }
@keyframes atl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro .loader { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
