/* ==========================================================================
   AERON LEGAL — Stylesheet
   Palette: near-black + gold, editorial serif + humanist sans
   ========================================================================== */

:root {
  --bg: #0d0d0c;
  --surface: #151513;
  --surface-2: #1a1814;
  --line: #37352e;
  --line-soft: #26241f;
  --gold: #d9b767;
  --gold-soft: #f4dc9b;
  --gold-deep: #b8965a;
  --cream: #f4f0e7;
  --muted: #aaa69c;
  --muted-2: #868278;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: #14120f;
}

img {
  max-width: 100%;
  display: block;
}

/* Film-grain overlay ------------------------------------------------------ */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

/* Reveal-on-scroll animation --------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Typography -------------------------------------------------------------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cream);
}

h1 i,
h2 i,
h3 i {
  font-weight: 500;
  color: var(--gold-soft);
}

h1 {
  font-size: clamp(54px, 6.4vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 700;
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 22px;
  text-transform: uppercase;
}
.eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* Header + Navigation ---------------------------------------------------- */
.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5.5vw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  transition: background 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out), height 0.35s var(--ease-out),
    backdrop-filter 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  height: 68px;
  background: rgba(13, 13, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.brand {
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  letter-spacing: 0.15em;
}
.brand-mark {
  border: 1px solid var(--gold);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font: 700 24px var(--font-display);
  color: var(--gold);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.brand:hover .brand-mark {
  background: var(--gold);
  color: #14120f;
}
.brand-word {
  display: block;
}
.brand b,
.brand em {
  display: block;
  font-size: 12px;
  line-height: 1.05;
}
.brand em {
  font-size: 8px;
  color: var(--gold);
  font-style: normal;
  letter-spacing: 0.34em;
  margin-top: 3px;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav a {
  font-size: 12px;
  color: #ddd8ce;
  text-decoration: none;
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.25s var(--ease-out);
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav a:not(.nav-cta):hover {
  color: var(--gold-soft);
}
.nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}
.nav-cta {
  border: 1px solid var(--gold);
  padding: 13px 18px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.nav-cta:hover {
  background: var(--gold);
  color: #14120f;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Buttons + Text links --------------------------------------------------- */
.button {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 10px;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
  padding: 15px 22px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}
.button:hover {
  background: var(--gold-soft);
  color: #14120f;
  transform: translateY(-1px);
}
.button-gold {
  background: var(--gold);
  color: #14120f;
}
.button-gold:hover {
  background: var(--gold-soft);
}
.button-outline {
  color: var(--gold);
}

.text-link {
  color: var(--cream);
  text-decoration: none;
  font-size: 12px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  transition: color 0.3s var(--ease-out);
}
.text-link span {
  margin-left: 10px;
  color: var(--gold);
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.text-link:hover {
  color: var(--gold-soft);
}
.text-link:hover span {
  transform: translateX(4px);
}

/* HERO -------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 185px 9vw 110px;
  background: radial-gradient(
    circle at 75% 46%,
    #272016 0,
    #171511 22%,
    #0d0d0c 56%
  );
  display: flex;
  align-items: center;
}
.hero::after {
  content: "";
  position: absolute;
  right: -14%;
  top: 0;
  height: 100%;
  width: 48%;
  border-left: 1px solid #4f4229;
  transform: skewX(-15deg);
  opacity: 0.45;
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(217, 183, 103, 0.09);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-one {
  width: 760px;
  height: 760px;
  right: -180px;
  top: 40px;
}
.orbit-two {
  width: 1080px;
  height: 1080px;
  right: -320px;
  top: -100px;
  opacity: 0.6;
}

.hero-copy {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 510px;
  line-height: 1.7;
  color: #c4c0b8;
  margin: 30px 0 40px;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Emblem badge */
.hero-emblem {
  position: absolute;
  z-index: 1;
  right: 12vw;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}
.emblem-rings {
  width: 315px;
  height: 315px;
  border: 1px solid #937c47;
  border-radius: 50%;
  padding: 17px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 18px rgba(200, 169, 90, 0.05),
    0 0 80px rgba(217, 183, 103, 0.14);
  animation: emblemGlow 8s ease-in-out infinite;
}
@keyframes emblemGlow {
  0%, 100% {
    box-shadow: 0 0 0 18px rgba(200, 169, 90, 0.05),
      0 0 80px rgba(217, 183, 103, 0.14);
  }
  50% {
    box-shadow: 0 0 0 22px rgba(200, 169, 90, 0.07),
      0 0 100px rgba(217, 183, 103, 0.22);
  }
}
.emblem-inner {
  border: 1px solid #937c47;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--gold);
}
.scales {
  font-size: 44px;
  line-height: 1;
}
.emblem-inner small {
  font-size: 8px;
  letter-spacing: 0.22em;
  margin: 14px 0;
}
.emblem-inner strong {
  font: 700 68px var(--font-display);
  letter-spacing: -0.1em;
  color: var(--cream);
  line-height: 0.6;
}
.hero-emblem > p {
  color: #b5aa92;
  font: 500 17px / 1.3 var(--font-display);
  letter-spacing: 0.05em;
  margin-top: 20px;
}

.hero-bottom {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 5.5vw;
  right: 5.5vw;
  border-top: 1px solid #4c4639;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.17em;
  color: #8c897f;
}
.hero-bottom b {
  color: var(--gold);
  font-size: 17px;
  margin-left: 8px;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* STATS strip ------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px 9vw;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 22px 20px;
  border-right: 1px solid var(--line-soft);
  text-align: left;
}
.stat:last-child {
  border-right: 0;
}
.stat b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  color: var(--gold);
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat span {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Sections ---------------------------------------------------------------- */
.section {
  padding: 130px 9vw;
}
.intro {
  border-bottom: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 12vw;
  align-items: end;
}
.intro h2,
.section-heading h2,
.approach h2,
.consultation h2 {
  font-size: clamp(43px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
}
.intro-grid > div p:not(.eyebrow),
.section-heading > p,
.consult-lead {
  line-height: 1.8;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
}

/* Practice areas ---------------------------------------------------------- */
.practice {
  background: var(--surface);
}
.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  align-items: end;
  margin-bottom: 60px;
  gap: 40px;
}
.section-heading > p {
  margin: 0;
  max-width: 350px;
}
.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.practice-card {
  min-height: 280px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 26px;
  position: relative;
  transition: background 0.35s var(--ease-out);
  background: transparent;
  overflow: hidden;
}
.practice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(217, 183, 103, 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.practice-card:hover {
  background: #201c15;
}
.practice-card:hover::before {
  opacity: 1;
}
.practice-card:hover .card-icon {
  transform: translateY(-4px);
  color: var(--gold-soft);
}
.practice-card:hover > a {
  transform: translate(3px, -3px);
  background: var(--gold);
  color: #14120f;
}
.card-index {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 700;
}
.card-icon {
  font: 32px var(--font-display);
  color: var(--gold);
  margin: 34px 0 23px;
  transition: transform 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.practice-card h3 {
  font-size: 28px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.practice-card p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 220px;
}
.practice-card > a {
  position: absolute;
  bottom: 22px;
  right: 22px;
  color: var(--gold);
  font-size: 14px;
  text-decoration: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}
.practice-card.feature {
  grid-column: span 2;
  background: linear-gradient(120deg, #211b11, #171513);
}
.practice-card.feature p {
  max-width: 340px;
}

/* Statement banner -------------------------------------------------------- */
.statement {
  min-height: 390px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #caa856;
  color: #15130f;
  padding: 60px 5.5vw;
}
.statement-line {
  position: absolute;
  border: 1px solid #5e4d29;
  width: 590px;
  height: 590px;
  transform: rotate(45deg);
  pointer-events: none;
}
.statement p {
  font: 600 clamp(33px, 4.5vw, 68px) / 0.95 var(--font-display);
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.statement p i {
  font-weight: 500;
}
.round-link {
  position: absolute;
  bottom: 40px;
  z-index: 1;
  border: 1px solid #5e4d29;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #15130f;
  text-decoration: none;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.round-link:hover {
  background: #15130f;
  color: var(--gold);
}

/* Approach ---------------------------------------------------------------- */
.approach {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 11vw;
  align-items: start;
}
.approach-visual {
  background: #1e1b15;
  min-height: 490px;
  padding: 35px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  border: 1px solid var(--line-soft);
}
.numeral {
  position: absolute;
  color: rgba(217, 183, 103, 0.08);
  font: 600 370px var(--font-display);
  top: -83px;
  left: -20px;
  line-height: 1;
  user-select: none;
}
.approach-visual p {
  position: relative;
  color: var(--gold-soft);
  font: 500 34px / 0.95 var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}
.principles {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}
.principles > div {
  display: grid;
  grid-template-columns: 45px 1fr 1.4fr;
  gap: 18px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease-out);
}
.principles > div:hover {
  padding-left: 10px;
}
.principles b {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.principles h3 {
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.01em;
}
.principles p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Consultation ------------------------------------------------------------ */
.consultation {
  background: #161614;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 12vw;
  align-items: start;
}
.consultation h2 {
  margin-bottom: 24px;
}
.contact-mini {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}
.contact-mini a {
  color: var(--gold-soft);
  text-decoration: none;
  font: 500 20px var(--font-display);
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease-out);
}
.contact-mini a:hover {
  color: var(--gold);
}

.consult-form {
  display: grid;
  gap: 22px;
}
.consult-form label {
  display: block;
}
.consult-form label > span {
  color: #ccc6b9;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.consult-form input,
.consult-form select,
.consult-form textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #5b574d;
  color: var(--cream);
  font: 15px var(--font-sans);
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s var(--ease-out);
}
.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  border-bottom-color: var(--gold);
}
.consult-form input::placeholder,
.consult-form textarea::placeholder {
  color: #6c685e;
}
.consult-form option {
  background: #151513;
  color: var(--cream);
}
.consult-form textarea {
  resize: vertical;
  min-height: 60px;
}
.consult-form .button {
  width: max-content;
  margin-top: 8px;
  border: 0;
}
.form-note {
  font-size: 12px;
  color: var(--gold-soft);
  margin: 0;
  min-height: 16px;
  letter-spacing: 0.05em;
}

/* Footer ------------------------------------------------------------------ */
footer {
  padding: 70px 5.5vw 26px;
  background: var(--bg);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 64px;
  gap: 30px;
}
.footer-tagline {
  font: 500 26px / 1 var(--font-display);
  color: #d7d1c3;
  margin: 0;
  letter-spacing: 0.01em;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: #868278;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-social {
  display: flex;
  gap: 22px;
}
.footer-social a {
  color: #bbb4a6;
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}
.footer-social a:hover {
  color: var(--gold);
}

/* Focus states ------------------------------------------------------------ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line-soft);
  }
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .practice-card.feature {
    grid-column: span 2;
  }
}

@media (max-width: 800px) {
  .site-header {
    height: 68px;
    padding: 0 6vw;
    background: rgba(13, 13, 12, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: stretch;
    top: 68px;
    left: 0;
    right: 0;
    background: #14130f;
    padding: 25px 6vw 30px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13px;
  }
  .nav a:last-child {
    border-bottom: 0;
  }
  .nav-cta {
    margin-top: 12px;
    justify-content: center;
  }
  .menu-toggle {
    display: flex;
  }
  .hero {
    padding: 130px 7vw 100px;
    min-height: auto;
  }
  .hero-emblem {
    opacity: 0.22;
    right: -80px;
    top: auto;
    bottom: 90px;
    transform: none;
  }
  .emblem-rings {
    width: 265px;
    height: 265px;
  }
  .hero-bottom {
    left: 7vw;
    right: 7vw;
    flex-wrap: wrap;
    gap: 8px;
  }
  .scroll-indicator {
    display: none;
  }
  .intro-grid,
  .section-heading,
  .approach,
  .consultation {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .section {
    padding: 85px 7vw;
  }
  .section-heading {
    margin-bottom: 35px;
  }
  .approach-visual {
    min-height: 260px;
  }
  .approach-visual p {
    font-size: 26px;
  }
  .numeral {
    font-size: 260px;
  }
  .principles > div {
    grid-template-columns: 32px 1fr;
    gap: 12px;
  }
  .principles p {
    grid-column: 2;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 40px;
  }
  .footer-bottom {
    flex-wrap: wrap;
  }
  .footer-social {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .stats {
    padding: 20px 7vw;
  }
  .stat {
    padding: 18px 12px;
  }
  .stat b {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 48px;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .practice-grid {
    grid-template-columns: 1fr;
  }
  .practice-card.feature {
    grid-column: span 1;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat b {
    font-size: 28px;
  }
  .consultation .button {
    width: 100%;
  }
}
