:root {
  --navy: #071a33;
  --navy-2: #0d2747;
  --ink: #142034;
  --gold: #c7a052;
  --gold-light: #ead8aa;
  --white: #ffffff;
  --ivory: #f8f5ef;
  --mist: #e8edf4;
  --shadow: 0 24px 70px rgba(7, 26, 51, 0.18);
  --heading-font: "Cormorant Garamond", Georgia, serif;
  --body-font: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--body-font);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(199, 160, 82, 0.28);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--gold-light);
  background: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--navy);
  font-family: var(--heading-font);
  font-size: 23px;
  line-height: 1;
}

.brand small {
  margin-top: 4px;
  color: #697488;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  color: var(--navy);
  background: transparent;
  border: 1px solid rgba(7, 26, 51, 0.2);
  border-radius: 999px;
  padding: 10px 14px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(56px, 8vw, 118px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 26, 51, 0.96) 0%, rgba(7, 26, 51, 0.86) 52%, rgba(7, 26, 51, 0.58) 100%),
    radial-gradient(circle at 82% 20%, rgba(199, 160, 82, 0.32), transparent 34%),
    var(--navy);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading-font);
  line-height: 1.02;
}

h1 {
  max-width: 800px;
  font-size: clamp(64px, 12vw, 132px);
  font-weight: 700;
}

.hero-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 14px 30px rgba(199, 160, 82, 0.24);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(234, 216, 170, 0.64);
  background: rgba(255, 255, 255, 0.06);
}

.button.quiet {
  color: var(--navy);
  border-color: rgba(7, 26, 51, 0.18);
  background: var(--white);
}

.contact-form .button.secondary {
  color: var(--navy);
  border-color: var(--gold);
  background: var(--white);
}

.hero-media {
  position: relative;
  min-height: 520px;
}

.law-figure {
  position: absolute;
  right: 0;
  top: 50%;
  width: min(44vw, 520px);
  height: min(44vw, 520px);
  min-width: 310px;
  min-height: 310px;
  border: 1px solid rgba(234, 216, 170, 0.35);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: reveal 900ms ease both;
}

.law-figure::before,
.law-figure::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.law-figure::before {
  inset: 10%;
  border: 1px solid rgba(234, 216, 170, 0.2);
}

.law-figure::after {
  inset: 23%;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 70px rgba(234, 216, 170, 0.08);
}

.column,
.scale-beam,
.scale-pan {
  position: absolute;
  left: 50%;
  background: linear-gradient(90deg, #9a7736, var(--gold-light), #b88d3e);
  transform: translateX(-50%);
}

.column.center {
  top: 23%;
  width: 18px;
  height: 48%;
}

.column.left,
.column.right {
  top: 68%;
  width: 31%;
  height: 14px;
}

.column.left {
  transform: translateX(-82%);
}

.column.right {
  transform: translateX(-18%);
}

.scale-beam {
  top: 32%;
  width: 54%;
  height: 10px;
  animation: balance 4s ease-in-out infinite;
}

.scale-pan {
  top: 42%;
  width: 18%;
  height: 10px;
  border-radius: 50%;
}

.scale-pan.one {
  left: 28%;
}

.scale-pan.two {
  left: 72%;
}

.hero-note {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 28px;
  display: grid;
  gap: 4px;
  max-width: 340px;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.8);
  border-left: 2px solid var(--gold);
}

.hero-note strong {
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.page-hero {
  padding: clamp(70px, 10vw, 130px) clamp(18px, 5vw, 72px) clamp(48px, 7vw, 86px);
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(7, 26, 51, 0.98), rgba(13, 39, 71, 0.9)),
    radial-gradient(circle at 82% 20%, rgba(199, 160, 82, 0.28), transparent 34%);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(48px, 8vw, 92px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading h2 {
  color: var(--navy);
  font-size: clamp(38px, 6vw, 70px);
}

.about-grid,
.articles-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

.portrait-panel,
.editor-panel,
.booking-form,
.contact-card,
.contact-form,
.media-manager,
.site-editor,
.editor-login {
  background: var(--white);
  border: 1px solid rgba(199, 160, 82, 0.25);
  box-shadow: var(--shadow);
}

.portrait-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.portrait-panel:hover .upload-drop {
  opacity: 1;
  pointer-events: auto;
}

.portrait-panel input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-drop {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 520px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  background:
    linear-gradient(145deg, rgba(7, 26, 51, 0.82), rgba(199, 160, 82, 0.28)),
    repeating-linear-gradient(45deg, rgba(7, 26, 51, 0.04), rgba(7, 26, 51, 0.04) 1px, transparent 1px, transparent 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 16px;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 44px;
}

.upload-drop strong {
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
}

.upload-drop small {
  max-width: 240px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

#portraitPreview {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center top;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy p {
  max-width: 780px;
  font-size: 20px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.stat-row div {
  padding: 20px;
  background: var(--navy);
  color: var(--white);
  border-top: 3px solid var(--gold);
}

.stat-row strong,
.stat-row span {
  display: block;
}

.stat-row strong {
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(199, 160, 82, 0.28);
  border: 1px solid rgba(199, 160, 82, 0.28);
}

.service-grid article {
  min-height: 320px;
  padding: 28px;
  background: var(--white);
  transition: background 180ms ease, color 180ms ease;
}

.service-grid article:hover {
  color: var(--white);
  background: var(--navy);
}

.service-grid span {
  color: var(--gold);
  font-weight: 800;
}

.service-grid h3 {
  margin-top: 48px;
  color: inherit;
  font-size: 34px;
}

.articles-section,
.media-section,
.contact-section {
  background: var(--white);
}

.editor-panel,
.booking-form,
.contact-form,
.contact-card,
.media-manager,
.site-editor,
.editor-login {
  padding: 26px;
}

.editor-login {
  display: grid;
  gap: 8px;
  max-width: 560px;
}

.site-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
  max-width: 1080px;
}

.site-editor .wide {
  grid-column: 1 / -1;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.media-manager {
  display: grid;
  gap: 22px;
}

.media-manager input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.media-upload-box {
  display: grid;
  place-items: center;
  min-height: 210px;
  margin: 0;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  background:
    linear-gradient(145deg, rgba(7, 26, 51, 0.05), rgba(199, 160, 82, 0.13)),
    repeating-linear-gradient(45deg, rgba(7, 26, 51, 0.04), rgba(7, 26, 51, 0.04) 1px, transparent 1px, transparent 16px);
}

.media-upload-box strong {
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  line-height: 1.05;
}

.media-upload-box small {
  max-width: 440px;
  color: #657184;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.media-empty {
  margin: 0;
  padding: 22px;
  color: #657184;
  background: var(--ivory);
  border: 1px solid rgba(199, 160, 82, 0.22);
}

.media-item {
  overflow: hidden;
  background: var(--ivory);
  border: 1px solid rgba(199, 160, 82, 0.28);
}

.media-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.media-item-footer span {
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delete-upload {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 12px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d5dbe5;
  border-radius: 2px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfe;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(199, 160, 82, 0.18);
}

.article-list {
  display: grid;
  gap: 16px;
}

.section-intro {
  max-width: 720px;
  margin: -12px 0 36px;
  color: #697488;
  font-size: 18px;
}

.journal-list {
  display: grid;
  gap: 0;
  max-width: 1120px;
}

.journal-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 64px);
  padding: 42px 0;
  border-top: 1px solid rgba(7, 26, 51, 0.15);
}

.journal-cover {
  display: block;
  overflow: hidden;
  min-height: 250px;
  background: var(--navy);
}

.journal-cover img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform 300ms ease;
}

.journal-cover:hover img {
  transform: scale(1.02);
}

.journal-cover span {
  display: grid;
  place-items: center;
  min-height: 250px;
  color: var(--gold);
  font-family: var(--heading-font);
  font-size: 78px;
  border: 1px solid var(--gold);
}

.journal-card-copy {
  align-self: center;
}

.journal-card-copy small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journal-card-copy h2 {
  max-width: 720px;
  margin: 12px 0 16px;
  color: var(--navy);
  font-size: clamp(35px, 5vw, 54px);
}

.journal-card-copy p {
  max-width: 650px;
  color: #5d6879;
  font-size: 17px;
}

.journal-read {
  display: inline-flex;
  gap: 10px;
  margin-top: 12px;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  font-weight: 800;
}

.journal-empty {
  padding: 48px;
  color: #697488;
  background: var(--ivory);
  border: 1px solid rgba(199, 160, 82, 0.25);
}

.journal-article {
  max-width: 920px;
  min-height: 70vh;
  margin: 0 auto;
  padding: clamp(70px, 10vw, 130px) clamp(18px, 5vw, 72px);
}

.journal-article .article-cover {
  display: block;
  width: 100%;
  max-height: 540px;
  margin-bottom: 54px;
  object-fit: cover;
}

.journal-article h1 {
  color: var(--navy);
  font-size: clamp(50px, 8vw, 88px);
}

.article-byline {
  margin: 22px 0 48px;
  color: #697488;
  font-size: 13px;
}

.article-body {
  max-width: 760px;
  color: #26344a;
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.9;
}

.article-body h2 {
  margin: 1.7em 0 0.5em;
  color: var(--navy);
  font-size: 38px;
}

.article-body blockquote {
  margin: 1.7em 0;
  padding: 8px 0 8px 24px;
  color: #536177;
  border-left: 3px solid var(--gold);
  font-style: italic;
}

.article-body img {
  display: block;
  max-width: 100%;
  margin: 35px auto;
}

.article-closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: white;
  background: var(--navy);
  border-top: 1px solid var(--gold);
}

.article-closing p {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--heading-font);
  font-size: 28px;
}

.article-card {
  padding: 24px;
  color: var(--navy);
  background: var(--ivory);
  border: 1px solid rgba(199, 160, 82, 0.25);
}

.article-card small {
  color: #697488;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-card h3 {
  margin-top: 8px;
  font-size: 32px;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
  max-width: 980px;
}

.booking-form .wide,
.booking-form button,
.form-status {
  grid-column: 1 / -1;
}

.form-status {
  margin: 6px 0 0;
  color: var(--navy);
  font-weight: 800;
}

.contact-card {
  display: grid;
  gap: 10px;
  align-content: start;
  color: var(--white);
  background: var(--navy);
  border-color: var(--gold);
}

.contact-card h3 {
  color: var(--gold-light);
  font-size: 40px;
}

.contact-card a {
  border-bottom: 1px solid rgba(234, 216, 170, 0.25);
  padding-bottom: 10px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy);
}

@keyframes balance {
  0%, 100% {
    transform: translateX(-50%) rotate(-2deg);
  }
  50% {
    transform: translateX(-50%) rotate(2deg);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-46%) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@media (max-width: 1120px) {
  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--white);
    border: 1px solid rgba(199, 160, 82, 0.28);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero,
  .about-grid,
  .articles-layout,
  .contact-grid,
  .journal-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 120px;
  }

  .hero-media {
    grid-row: 1;
    min-height: 340px;
  }

  .law-figure {
    left: 50%;
    right: auto;
    width: min(76vw, 420px);
    height: min(76vw, 420px);
    transform: translate(-50%, -50%);
  }

  .hero-copy {
    grid-row: 2;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 19px;
  }

  .hero-note {
    left: 18px;
    right: 18px;
  }

  .stat-row,
  .service-grid,
  .booking-form,
  .site-editor,
  .media-gallery {
    grid-template-columns: 1fr;
  }

  .portrait-panel,
  .upload-drop,
  #portraitPreview {
    min-height: 380px;
  }

  .site-footer {
    flex-direction: column;
  }

  .journal-cover,
  .journal-cover img,
  .journal-cover span {
    min-height: 210px;
  }

  .article-closing {
    align-items: flex-start;
    flex-direction: column;
  }
}
