/* =========================================================
   Andressa Albuquerque Advocacia
   Design tokens → base → components → sections → motion
   ========================================================= */

:root {
  /* brand */
  --wine: #7a152d;
  --wine-700: #651126;
  --wine-800: #4d0c1c;
  --wine-900: #2b0710;
  --wine-soft: #f3e3e3;
  --gold: #c9b564;
  --gold-300: #ddd09a;
  --gold-600: #a8944a;
  --gold-ink: #7d6c2c; /* gold for small text on light bg (AA) */

  /* neutrals */
  --paper: #fbf7f1;
  --cream: #f5ede2;
  --cream-2: #efe4d5;
  --ink: #26161b;
  --ink-2: #5d4b50;
  --ink-3: #746268;
  --line: rgba(122, 21, 45, 0.14);
  --line-2: rgba(38, 22, 27, 0.08);

  /* type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-caption: 0.875rem;
  --text-small: 1rem;
  --text-body: 1.0625rem;
  --text-lead: 1.125rem;
  --text-subheading: clamp(1.375rem, 2vw, 1.75rem);
  --text-heading: clamp(2rem, 4vw, 3.5rem);
  --text-display: clamp(2.5rem, 5.6vw, 4.5rem);

  /* motion — strong custom curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 22px;
  --radius-lg: 32px;
  --header-h: 84px;

  --shadow-sm: 0 1px 2px rgba(43, 7, 16, 0.06), 0 2px 8px rgba(43, 7, 16, 0.04);
  --shadow-md: 0 2px 4px rgba(43, 7, 16, 0.04), 0 12px 32px -8px rgba(43, 7, 16, 0.14);
  --shadow-lg: 0 4px 10px rgba(43, 7, 16, 0.05), 0 30px 60px -20px rgba(43, 7, 16, 0.28);
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
strong { font-weight: 550; }
em { font-style: italic; }

::selection { background: var(--wine); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--wine);
  color: #fff;
  border-radius: 999px;
  transform: translateY(-150%);
  transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: translateY(0); }

/* ---------- type ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: var(--text-heading);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--ink);
  text-wrap: balance;
  margin-top: 0;
}
.h2 em {
  color: var(--wine);
  font-weight: 330;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.h2--light { color: var(--paper); }
.h2--light em { color: var(--gold); }

.section { position: relative; padding-block: clamp(88px, 12vw, 160px); }

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 32px 64px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head__lead {
  color: var(--ink-2);
  font-size: var(--text-lead);
  max-width: 44ch;
  text-wrap: pretty;
}
.section-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.br-lg { display: none; }
@media (min-width: 900px) { .br-lg { display: inline; } }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--wine);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding-inline: 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 450;
  font-size: var(--text-small);
  letter-spacing: 0.005em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease,
    color 200ms ease,
    box-shadow 250ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(0.97); }

/* shine sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-120%);
}

.btn--wine { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 8px 22px -10px rgba(122, 21, 45, 0.7); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--wine-900); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--sm { min-height: 44px; height: auto; padding: 10px 18px; font-size: var(--text-small); }
.btn--lg { height: 56px; padding-inline: 28px; font-size: var(--text-small); }
.btn--block { width: 100%; }
.btn .arrow { transition: transform 250ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover::after { transform: translateX(120%); transition: transform 700ms var(--ease-out); }
  .btn--wine:hover { --btn-bg: var(--wine-700); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 14px 28px -12px rgba(122, 21, 45, 0.8); }
  .btn--gold:hover { --btn-bg: var(--gold-300); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--wine); color: var(--wine); }
  .btn:hover .arrow { transform: translateX(3px); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--wine);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 200ms ease;
}
.link-arrow svg { width: 18px; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { border-color: var(--wine); }
  .link-arrow:hover svg { transform: translateX(3px); }
}

.icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--wine);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, opacity 200ms ease;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[data-prev] svg { transform: rotate(180deg); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:not(:disabled):hover { background: var(--wine); color: #fff; }
}

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--wine), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition:
    transform 400ms var(--ease-drawer),
    background-color 300ms ease,
    box-shadow 300ms ease,
    opacity 200ms ease;
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 247, 241, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line-2);
  opacity: 0;
  transition: opacity 300ms ease;
}
.header.is-scrolled { height: var(--header-h); }
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }
.header:focus-within { transform: none; }

.header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.header__logo img { height: 42px; width: auto; transition: opacity 200ms ease; }


.nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: var(--text-small);
  color: var(--ink-2);
  border-radius: 999px;
  transition: color 200ms ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease-out);
}
.nav a.is-active { color: var(--wine); }
.nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--wine); }
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}

.burger { display: none; }

@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .header__cta { margin-left: auto; }
  .header__logo img { height: 36px; }
  .header.is-scrolled { height: var(--header-h); }

  .burger {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform 160ms var(--ease-out);
    position: relative;
    z-index: 2;
  }
  .burger:active { transform: scale(0.94); }
  .burger span {
    display: block;
    width: 18px;
    height: 1.6px;
    background: var(--wine);
    border-radius: 2px;
    transition: transform 300ms var(--ease-out);
  }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .header__cta span { display: none; }
  .header__cta { width: 44px; height: 44px; padding: 0; }
  .header__inner { gap: 10px; }
}

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  padding: calc(var(--header-h) + 32px) max(var(--gutter), env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 500ms var(--ease-drawer);
}
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__nav { display: grid; gap: 4px; }
.menu__nav a,
.menu__foot {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: 0ms;
}
.menu__nav a {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.2;
  font-weight: 350;
  color: var(--ink);
  padding-block: 6px;
  border-bottom: 1px solid var(--line-2);
}
.menu.is-open .menu__nav a,
.menu.is-open .menu__foot {
  opacity: 1;
  transform: none;
  transition-delay: calc(120ms + var(--i) * 45ms);
}
.menu__foot { display: grid; gap: 14px; justify-items: start; }
.menu__foot p { color: var(--ink-3); font-size: var(--text-caption); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 64px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1200px 600px at 85% 30%, rgba(201, 181, 100, 0.16), transparent 60%),
    radial-gradient(900px 700px at 0% 100%, rgba(122, 21, 45, 0.07), transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
}
.hero__title {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 330;
  font-size: var(--text-display);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  color: var(--ink);
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero__title .line > span { display: inline-block; }
.hero__title em {
  color: var(--wine);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.hero__lead {
  margin-top: 28px;
  max-width: 50ch;
  font-size: var(--text-lead);
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__lead strong { color: var(--ink); }
.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__trust {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  color: var(--ink-2);
  font-size: var(--text-small);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--gold-600); }

/* hero visual */
.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 480px);
  aspect-ratio: 0.78;
  margin-top: 40px;
}
.arch {
  position: absolute;
  inset: 12% 4% 0;
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
  background: var(--wine);
}
.arch__fill {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(201, 181, 100, 0.28), transparent 60%),
    radial-gradient(80% 60% at 50% 110%, rgba(43, 7, 16, 0.7), transparent 70%),
    linear-gradient(180deg, #8c1d37, var(--wine) 45%, var(--wine-800));
}
.arch__mark {
  position: absolute;
  left: 50%;
  bottom: -1%;
  width: 150%;
  max-width: none;
  translate: -50% 0;
  overflow: visible;
  z-index: 0;
  pointer-events: none;
}
.mark-draw path { stroke: rgba(122, 21, 45, 0.35); stroke-dasharray: 1; stroke-dashoffset: 1; }
.mark-draw path.g { stroke: var(--gold-600); }
.arch { z-index: 1; }
.arch-line { z-index: 1; }

.arch-line {
  position: absolute;
  inset: calc(12% - 14px) calc(4% - 14px) -14px;
  border-radius: 999px 999px 36px 36px;
  border: 1px solid rgba(168, 148, 74, 0.55);
  pointer-events: none;
}
.hero__photo {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: none;
  translate: -50% 0;
  z-index: 2;
}
.js .hero__visual::after { opacity: 0; }
.js .is-loaded .hero__visual::after { opacity: 1; transition: opacity 1000ms ease 900ms; }
.hero__visual::after {
  /* bottom seat so the cut-out sits inside the arch */
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 16%;
  z-index: 3;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, transparent, rgba(77, 12, 28, 0.55));
  pointer-events: none;
}

.float-card {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  font-size: var(--text-caption);
  line-height: 1.25;
}
.float-card strong { display: block; font-weight: 550; color: var(--ink); }
.float-card small { color: var(--ink-2); font-size: var(--text-caption); }
.float-card--id { left: -8%; bottom: 12%; }
.float-card__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cream);
}
.float-card__mark svg { width: 32px; }
.float-card--tag {
  right: -8%;
  top: 50%;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 450;
  color: var(--wine);
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 28px); }
  .hero__grid { grid-template-columns: 1fr; gap: 12px; }
  .hero__visual { width: min(86%, 400px); margin-top: 32px; }
  .float-card--id { left: -6%; }
  .float-card--tag { right: -6%; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
  .hero__trust { gap: 10px 18px; font-size: var(--text-caption); }
  .float-card { font-size: var(--text-caption); }
  .float-card--tag { top: 46%; right: -4%; font-size: var(--text-caption); }
  .float-card--id { bottom: 8%; left: -4%; }
}

/* ---------- ABOUT ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
.about__media { position: relative; margin: 0; }
.about__img {
  overflow: hidden;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  aspect-ratio: 0.72;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
}
.about__img img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: 50% 20%;
  will-change: transform;
}
.about__badge {
  position: absolute;
  right: -24px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px 16px 16px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.3;
}
.about__badge strong {
  display: block;
  font-family: var(--serif);
  font-size: var(--text-subheading);
  letter-spacing: -0.01em;
  color: var(--wine);
  font-weight: 450;
}
.about__badge svg { width: 48px; }

.manifesto {
  margin-top: 32px;
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-variation-settings: "opsz" 60;
  text-wrap: pretty;
}
.about__text {
  margin-top: 28px;
  color: var(--ink-2);
  max-width: 60ch;
}
.about__sign {
  margin-top: 32px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-subheading);
  font-weight: 300;
  color: var(--wine);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  letter-spacing: -0.01em;
}
.about__role {
  font-size: var(--text-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.facts {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.facts li {
  padding: 20px 20px 0 0;
  display: grid;
  gap: 4px;
}
.facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.facts__k { font-size: var(--text-caption); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.facts__v { font-family: var(--serif); font-size: var(--text-lead); color: var(--ink); font-weight: 400; line-height: 1.25; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { width: min(88%, 420px); justify-self: center; }
  .about__badge { right: -12px; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- PROCESS ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 31px;
  height: 1px;
  background: var(--line);
}
.steps__line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--wine), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.step { position: relative; padding-right: 12px; }
.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  font-family: var(--serif);
  font-size: var(--text-lead);
  color: var(--wine);
  transition: background-color 500ms ease, color 500ms ease, box-shadow 500ms ease;
}
.step.is-lit .step__num {
  background: var(--wine);
  color: var(--gold-300);
  box-shadow: 0 0 0 6px rgba(122, 21, 45, 0.08), var(--shadow-md);
}
.step h3 {
  margin-top: 28px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-subheading);
  letter-spacing: -0.012em;
  line-height: 1.15;
}
.step p { margin-top: 10px; color: var(--ink-2); font-size: var(--text-small); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 40px; padding-left: 0; }
  .steps__line { left: 31px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps__line span { width: 100%; height: 100%; transform-origin: 50% 0; transform: scaleY(0); }
  .step { display: grid; grid-template-columns: 62px 1fr; column-gap: 24px; }
  .step__num { grid-row: span 2; }
  .step h3 { margin-top: 14px; }
}

/* ---------- VALUES ---------- */
.values {
  background: var(--wine-900);
  color: var(--paper);
  overflow: hidden;
}
.values::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(122, 21, 45, 0.9), transparent 65%),
    radial-gradient(700px 500px at 100% 100%, rgba(201, 181, 100, 0.14), transparent 60%);
}
.values__bg {
  position: absolute;
  right: -8%;
  top: 50%;
  width: min(62vw, 820px);
  translate: 0 -50%;
  opacity: 0.07;
  --mark-a: var(--gold);
  --mark-b: var(--gold);
  pointer-events: none;
}
.values__grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.values__head { position: sticky; top: 120px; }
.values__lead {
  margin-top: 24px;
  color: rgba(251, 247, 241, 0.72);
  font-size: var(--text-lead);
  max-width: 46ch;
  margin-bottom: 36px;
}
.pillars { display: grid; }
.pillar {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding-block: 34px;
  border-top: 1px solid rgba(201, 181, 100, 0.2);
}
.pillar:last-child { border-bottom: 1px solid rgba(201, 181, 100, 0.2); }
.pillar__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(201, 181, 100, 0.35);
}
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.012em;
  line-height: 1.15;
  color: var(--paper);
}
.pillar p { margin-top: 8px; color: rgba(251, 247, 241, 0.68); max-width: 48ch; }

@media (max-width: 900px) {
  .values__grid { grid-template-columns: 1fr; }
  .values__head { position: static; }
}

/* ---------- FAQ ---------- */
.faq { background: var(--cream); }
.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.faq__head { position: sticky; top: 120px; }
.faq__head .section-head__lead { margin-top: 20px; }
.acc { border-bottom: 1px solid var(--line); }
.acc:first-child { border-top: 1px solid var(--line); }
.acc button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 200ms ease;
}
.acc__icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 250ms ease, box-shadow 250ms ease, transform 160ms var(--ease-out);
}
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: var(--wine);
  border-radius: 2px;
  transition: transform 300ms var(--ease-out), background-color 250ms ease;
}
.acc__icon::after { transform: rotate(90deg); }
.acc button:active .acc__icon { transform: scale(0.92); }
.acc button[aria-expanded="true"] { color: var(--wine); }
.acc button[aria-expanded="true"] .acc__icon { background: var(--wine); box-shadow: none; }
.acc button[aria-expanded="true"] .acc__icon::before,
.acc button[aria-expanded="true"] .acc__icon::after { background: var(--paper); }
.acc button[aria-expanded="true"] .acc__icon::after { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) {
  .acc button:hover { color: var(--wine); }
  .acc button:hover .acc__icon { box-shadow: inset 0 0 0 1px var(--wine); }
}
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms var(--ease-out);
}
.acc__panel > div { overflow: hidden; }
.acc__panel p {
  padding: 0 64px 28px 0;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 250ms ease, transform 400ms var(--ease-out);
}
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc.is-open .acc__panel p { opacity: 1; transform: none; transition-delay: 60ms; }

@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .acc__panel p { padding-right: 0; }
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--wine);
  color: var(--paper);
  overflow: hidden;
}
.contact__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 500px at 100% 0%, rgba(201, 181, 100, 0.22), transparent 60%),
    radial-gradient(900px 700px at 0% 100%, rgba(43, 7, 16, 0.65), transparent 60%);
  pointer-events: none;
}
.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}
.contact__title { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.contact__lead { margin-top: 24px; color: rgba(251, 247, 241, 0.75); font-size: var(--text-lead); max-width: 44ch; }
.channels { margin-top: 40px; display: grid; gap: 4px; }
.channels a,
.channels__static {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  font-size: var(--text-body);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.channels small {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}
.channels__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(201, 181, 100, 0.35);
  transition: background-color 250ms ease, color 250ms ease, transform 160ms var(--ease-out);
}
.channels__icon svg { width: 21px; height: 21px; }
.channels a:active .channels__icon { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .channels a:hover .channels__icon { background: var(--gold); color: var(--wine-900); }
}

.contact__card-wrap { position: relative; padding-top: 138px; }
.contact__char {
  position: absolute;
  top: 0;
  right: 8%;
  width: min(260px, 52%);
  z-index: 0;
  filter: drop-shadow(0 20px 30px rgba(43, 7, 16, 0.35));
}
.form {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(20, 3, 8, 0.6);
  display: grid;
  gap: 14px;
}
.form__head { margin-bottom: 8px; }
.form__head h3 { font-family: var(--serif); font-weight: 400; font-size: var(--text-subheading); letter-spacing: -0.015em; }
.form__head p { color: var(--ink-2); font-size: var(--text-small); margin-top: 4px; }
.field { position: relative; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 26px 16px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: var(--text-small);
  outline: none;
  appearance: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field label {
  position: absolute;
  left: 17px;
  top: 18px;
  color: var(--ink-3);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform 200ms var(--ease-out), color 200ms ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 4px rgba(122, 21, 45, 0.1);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
  transform: translateY(-10px) scale(0.78);
  color: var(--wine);
}
.field__chev {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 18px;
  translate: 0 -50%;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.75;
  pointer-events: none;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #b3261e; }
.form__error { min-height: 0; color: #b3261e; font-size: var(--text-caption); }
.form__error:empty { display: none; }
.form__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: var(--text-caption);
  color: var(--ink-3);
}
.form__note svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--wine-900);
  color: rgba(251, 247, 241, 0.72);
  padding-top: 80px;
  font-size: var(--text-small);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(201, 181, 100, 0.15);
}
.footer__logo { height: 52px; width: auto; }
.footer__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--gold-300);
  max-width: 28ch;
  font-weight: 300;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-block: 48px;
}
.footer__cols div { display: grid; gap: 10px; align-content: start; }
.footer__cols h3 {
  font-size: var(--text-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 6px;
}
.footer__cols a { width: fit-content; transition: color 200ms ease; word-break: break-word; }
@media (hover: hover) and (pointer: fine) {
  .footer__cols a:hover { color: var(--paper); }
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  padding-block: 28px 36px;
  border-top: 1px solid rgba(201, 181, 100, 0.15);
  font-size: var(--text-caption);
  color: rgba(251, 247, 241, 0.5);
}
.footer__bottom p:nth-child(2) { flex: 1 1 320px; }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); }
.to-top svg { width: 16px; transform: rotate(-90deg); }
@media (max-width: 720px) {
  .footer__cols { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- FAB ---------- */
.fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 20px 0 17px;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  box-shadow: 0 16px 36px -12px rgba(43, 7, 16, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out), background-color 200ms ease;
}
.fab svg { width: 24px; height: 24px; }
.fab__label { font-weight: 450; font-size: var(--text-small); }
.fab.is-visible { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
.fab.is-visible:active { transform: scale(0.96); transition-duration: 160ms; }
@media (hover: hover) and (pointer: fine) {
  .fab:hover { background: var(--wine-700); }
}
@media (max-width: 640px) {
  .fab { width: 58px; padding: 0; justify-content: center; }
  .fab__label { display: none; }
}


/* Focused working-law content inherits the existing wine, gold and paper palette. */
html { scrollbar-color: var(--wine) var(--cream); }
input, textarea, select { caret-color: var(--wine); }
.h2, .hero__title { text-wrap: balance; }
.hero__title { max-width: 15ch; line-height: 1.06; }
.hero__lead { max-width: 49ch; margin-top: 24px; }
.hero__actions { margin-top: 28px; }
.hero__trust { margin-top: 28px; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 10px; }
.mark-draw path { stroke-dashoffset: 0; }
.hero__visual { animation: portrait-in 500ms var(--ease-out); }
@keyframes portrait-in { from { transform: translateY(10px); } to { transform: none; } }
.areas { background: var(--cream); }
.work-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.work-topics { border-top: 1px solid var(--line); }
.work-topics li { border-bottom: 1px solid var(--line); }
.work-topics a { position: relative; display: block; padding: 25px 44px 25px 0; }
.work-topics h3, .other-practices h3 { font-family: var(--serif); font-size: var(--text-subheading); line-height: 1.2; font-weight: 400; }
.work-topics p { margin-top: 8px; color: var(--ink-2); font-size: var(--text-small); }
.work-topics a > svg { position: absolute; right: 8px; top: 30px; color: var(--wine); width: 22px; height: 22px; }
.work-topics a:hover h3, .other-practices a:hover h3 { color: var(--wine); }
.work-note { padding: clamp(28px, 3vw, 40px); background: var(--wine); color: var(--paper); border-radius: var(--radius); }
.work-note h3 { font-family: var(--serif); font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 360; line-height: 1.12; }
.work-note em { color: var(--gold-300); }
.work-note p { margin-top: 20px; }
.work-note .btn { margin-top: 28px; height: auto; min-height: 52px; padding-block: 14px; white-space: normal; text-align: center; }
.work-note small { display: block; margin-top: 24px; font-size: var(--text-caption); color: var(--gold-300); }
.reading-list { border-top: 1px solid var(--line); }
.reading-list > a { display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: center; gap: 24px 40px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.reading-list h3 { font-family: var(--serif); font-size: var(--text-subheading); font-weight: 400; line-height: 1.25; text-wrap: pretty; }
.reading-list p { color: var(--ink-2); }
.reading-list span { color: var(--wine); font-size: var(--text-small); display: inline-flex; gap: 8px; align-items: center; }
.reading-list svg { width: 18px; }
.reading-list a:hover h3 { color: var(--wine); }
.other-practices { background: var(--cream); }
.other-practices__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 7vw, 100px); }
.other-practices__grid > div > p { margin-top: 24px; max-width: 35ch; color: var(--ink-2); }
.other-practices li { border-bottom: 1px solid var(--line); }
.other-practices li:first-child { border-top: 1px solid var(--line); }
.other-practices li a { display: block; padding: 24px 0; }
.other-practices li p { margin-top: 8px; color: var(--ink-2); }
.channels__hours { display: block; margin-top: 4px; font-size: var(--text-small); }
.form__note { justify-content: flex-start; font-size: var(--text-caption); }
.form__privacy { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; font-size: var(--text-caption); text-decoration: underline; text-underline-offset: 4px; color: var(--wine); }
.form noscript a { text-decoration: underline; text-underline-offset: 4px; }
.form .btn { height: auto; min-height: 56px; padding-block: 14px; white-space: normal; text-align: center; }
.field select { padding-right: 44px; }
.field textarea { padding-top: 42px; }
.field textarea + label { right: 16px; line-height: 1.3; }
.footer__cols a, .to-top { min-height: 44px; display: inline-flex; align-items: center; }
.footer__bottom { color: rgba(251, 247, 241, 0.78); }
a, button { touch-action: manipulation; }
button { -webkit-tap-highlight-color: transparent; user-select: none; }
html:not(.js) .acc__panel { grid-template-rows: 1fr; }
html:not(.js) .acc__panel p { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .work-layout, .other-practices__grid { grid-template-columns: 1fr; }
  .reading-list > a { grid-template-columns: 1fr; gap: 12px; }
  .hero { padding-bottom: 44px; }
  .hero__visual { margin-top: 24px; }
}
@media (max-width: 520px) {
  .section { padding-block: 72px; }
  .hero__lead { font-size: var(--text-body); }
  .hero__title { max-width: none; }
  .hero__actions .btn--ghost { min-height: 44px; height: auto; padding-block: 10px; }
  .section-head { gap: 24px; margin-bottom: 36px; }
  .about__copy .h2 { font-size: 2rem; }
}
/* Each component has a static reduced-motion state, with all content visible. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__visual { animation: none; }
  .btn, .btn::after, .btn .arrow, .link-arrow, .link-arrow svg,
  .header, .header::before, .header__logo img, .nav a, .nav a::after,
  .burger, .burger span, .menu, .menu__nav a, .menu__foot,
  .acc button, .acc__icon, .acc__icon::before, .acc__icon::after,
  .acc__panel, .acc__panel p, .channels__icon, .field input, .field select,
  .field textarea, .field label, .fab, .fab.is-visible:active, .footer__cols a,
  .skip { transition: none; }
  .btn::after { display: none; }
  .btn:active, .burger:active, .acc button:active .acc__icon,
  .channels a:active .channels__icon, .fab.is-visible:active { transform: none; }
  .acc.is-open .acc__panel p { transition-delay: 0s; }
  .menu__nav a, .menu__foot { transform: none; }
}

/* Reading pages share the same type scale and visual identity as the home. */
.reading-page .header::before { opacity: 1; }
.article { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(72px, 9vw, 128px); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--ink-2); font-size: var(--text-caption); }
.breadcrumbs a { min-height: 44px; display: inline-flex; align-items: center; color: var(--wine); text-decoration: underline; text-underline-offset: 4px; }
.article__head { max-width: 920px; padding-block: 32px 56px; }
.article h1 { font-family: var(--serif); font-size: clamp(2.5rem, 4.8vw, 4rem); font-weight: 360; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.article h1 em, .article__contact h2 em { color: var(--wine); }
.article__lead { margin-top: 28px; color: var(--ink-2); font-size: var(--text-lead); max-width: 65ch; }
.article__meta { margin-top: 24px; color: var(--ink-3); font-size: var(--text-caption); }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(48px, 6vw, 96px); align-items: start; }
.article__body { max-width: 70ch; min-width: 0; }
.article__body section { margin-bottom: 48px; scroll-margin-top: calc(var(--header-h) + 32px); }
.article__body h2 { font-family: var(--serif); font-size: clamp(1.625rem, 2.3vw, 2rem); font-weight: 400; line-height: 1.2; letter-spacing: -0.015em; text-wrap: pretty; margin-bottom: 20px; }
.article__body p + p { margin-top: 18px; }
.article__body p, .article__body li { line-height: 1.75; }
.article__body ul { list-style: disc; padding-left: 24px; margin-block: 18px; }
.article__body li + li { margin-top: 10px; }
.article__body a { color: var(--wine); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.article__sources, .article__related { border-top: 1px solid var(--line); padding-top: 32px; }
.article__sources ul, .article__related ul { list-style: none; padding: 0; }
.article__sources a, .article__related a { display: inline-flex; align-items: center; min-height: 44px; }
.article__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.article__toc h2 { font-family: var(--sans); font-size: var(--text-body); font-weight: 550; margin-bottom: 12px; }
.article__toc li { border-bottom: 1px solid var(--line); }
.article__toc a { display: block; padding-block: 14px; color: var(--ink-2); min-height: 44px; }
.article__toc a:hover { color: var(--wine); }
.article__contact { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.article__contact h2 { font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.15; }
.article__contact p { margin-top: 18px; color: var(--ink-2); }
.article__contact .btn { margin-top: 24px; min-height: 52px; height: auto; padding-block: 14px; white-space: normal; }
.article__contact .article__contact-note { font-size: var(--text-caption); }
.article__contact > a:last-child { display: inline-flex; min-height: 44px; align-items: center; font-size: var(--text-caption); color: var(--wine); text-decoration: underline; text-underline-offset: 4px; }
.privacy-page .article__head, .privacy-page .article__body { margin-inline: auto; max-width: 70ch; }
@media (max-width: 980px) {
  .article__layout { grid-template-columns: 1fr; gap: 0; }
  .article__aside { position: static; display: contents; }
  .article__toc { grid-row: 1; margin-bottom: 44px; padding-block: 24px; border-block: 1px solid var(--line); }
  .article__contact { max-width: 70ch; margin-top: 0; }
  .article__body { max-width: 70ch; }
}
@media (max-width: 520px) {
  .article { padding-top: calc(var(--header-h) + 24px); }
  .article__head { padding-block: 24px 40px; }
  .article h1 { font-size: 2.25rem; }
  .article__lead { font-size: var(--text-body); }
}
