/* 1984 Partners
   Layout idea: left-aligned editorial grid — a narrow title column beside a wide
   content column, hairline rules between rows, one compass motif on the home page. */

:root {
  --ink: #0C1522;
  --ink-raised: #111C2C;
  --rule: #223049;
  --rule-strong: #34445F;
  --text: #ECE6DA;
  --muted: #A3ADBC;
  --brass: #C6A86F;
  --brass-strong: #DDC492;

  --display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 9vw, 128px);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 16px; background: var(--brass); color: var(--ink);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

/* Header */

.site-header { border-bottom: 1px solid var(--rule); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand img { width: 32px; height: 32px; }
.brand span {
  font-family: var(--display); font-weight: 600; font-size: 21px;
  letter-spacing: 0.3em; line-height: 1; padding-top: 2px; white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); list-style: none; padding: 0; }
.nav-links a {
  font-size: 15px; color: var(--muted); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--brass); }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--rule-strong); color: var(--text);
  font: 500 14px/1 var(--body); padding: 11px 16px; border-radius: 2px; cursor: pointer;
}

/* Type */

.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); max-width: 38em; }

.page-hero { padding: clamp(72px, 10vw, 136px) 0 clamp(56px, 7vw, 96px); }
.page-hero h1 {
  font-size: clamp(44px, 6vw, 80px); line-height: 1.04; letter-spacing: -0.01em;
  max-width: 15ch; margin-bottom: 28px;
}

.section { padding: var(--section) 0; border-top: 1px solid var(--rule); }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); }

.section-title { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; }
.section-intro { margin-top: 20px; color: var(--muted); max-width: 26em; }

/* Buttons and links */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border: 1px solid var(--brass); border-radius: 2px;
  background: var(--brass); color: var(--ink);
  font: 600 15px/1 var(--body); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.button:hover { background: var(--brass-strong); border-color: var(--brass-strong); }

.text-link {
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500;
  padding-bottom: 3px; border-bottom: 1px solid var(--rule-strong);
  transition: border-color 160ms ease;
}
.text-link:hover { border-bottom-color: var(--brass); }

/* Home hero */

.hero { padding: clamp(64px, 9vw, 128px) 0 clamp(72px, 9vw, 128px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero h1 {
  font-size: clamp(44px, 5.6vw, 78px); line-height: 1.03; letter-spacing: -0.012em;
  margin-bottom: 32px; max-width: 14ch;
}

.compass { width: 100%; max-width: 480px; margin-left: auto; color: #4A5B7A; }
.compass .ring { transform-box: view-box; transform-origin: 300px 300px; animation: ring-settle 2200ms cubic-bezier(.16, .84, .3, 1) both; }
.compass .needle { transform-box: view-box; transform-origin: 300px 300px; animation: needle-settle 2600ms cubic-bezier(.16, .84, .3, 1) 150ms both; }
.compass text { font-family: var(--body); font-size: 11px; letter-spacing: 0.08em; fill: var(--muted); }

@keyframes ring-settle {
  from { transform: rotate(-32deg); opacity: 0.25; }
  to { transform: rotate(0deg); opacity: 1; }
}
@keyframes needle-settle {
  0% { transform: rotate(24deg); opacity: 0.3; }
  70% { transform: rotate(-2deg); opacity: 1; }
  100% { transform: rotate(0deg); opacity: 1; }
}

/* Rows (practice areas, scope) */

.rows { list-style: none; padding: 0; border-bottom: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 40px;
  padding: 30px 0; border-top: 1px solid var(--rule);
}
.row h3 { font-size: clamp(26px, 2.2vw, 30px); line-height: 1.15; }
.row h3 a { text-decoration: none; transition: color 160ms ease; }
.row h3 a:hover { color: var(--brass-strong); }
.row p { color: var(--muted); }

/* Principles (prose blocks) */

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(32px, 5vw, 72px); }
.principle h3 { font-size: 27px; line-height: 1.2; margin-bottom: 12px; }
.principle p { color: var(--muted); }

/* Sector list on home */

.sector-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.sector-list li { border-top: 1px solid var(--rule); }
.sector-list a {
  display: block; padding: 18px 0; text-decoration: none;
  font-family: var(--display); font-size: 24px; line-height: 1.25; transition: color 160ms ease;
}
.sector-list a:hover { color: var(--brass-strong); }

/* Closing band */

.closing { padding: var(--section) 0; border-top: 1px solid var(--rule); }
.closing-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; }
.closing p.statement { font-family: var(--display); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; max-width: 24ch; }

/* Services */

.service { padding: var(--section) 0; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.service h2 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.08; }
.service .summary { margin-top: 18px; color: var(--muted); max-width: 22em; }
.service-body > p { max-width: 38em; }
.service-body h3 { font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--brass); margin: 36px 0 8px; letter-spacing: 0.01em; }
.work-list { list-style: none; padding: 0; border-bottom: 1px solid var(--rule); }
.work-list li { padding: 14px 0; border-top: 1px solid var(--rule); }
.service-note { margin-top: 24px; font-size: 15px; color: var(--muted); max-width: 40em; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.steps li { border-top: 1px solid var(--rule-strong); padding-top: 22px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 18px;
  font-family: var(--display); font-size: 44px; line-height: 1; color: var(--brass);
}
.steps h3 { font-size: 27px; line-height: 1.2; margin-bottom: 10px; }
.steps p { color: var(--muted); }

.models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(56px, 6vw, 80px); }
.model { background: var(--ink-raised); border: 1px solid var(--rule); padding: clamp(28px, 3vw, 40px); }
.model h3 { font-size: 28px; margin-bottom: 10px; }
.model p { color: var(--muted); }

/* Industries */

.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px clamp(32px, 4vw, 56px); }
.sector { border-top: 1px solid var(--rule-strong); padding-top: 24px; scroll-margin-top: 24px; }
.sector h2 { font-size: 30px; line-height: 1.15; margin-bottom: 14px; }
.sector p { color: var(--muted); }

.situations { list-style: none; padding: 0; border-bottom: 1px solid var(--rule); }
.situations li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 40px; padding: 22px 0; border-top: 1px solid var(--rule); }
.situations strong { font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1.3; }
.situations span { color: var(--muted); }

/* Contact */

.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); }
.details { display: grid; gap: 28px; align-content: start; }
.details dt { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.details dd { font-family: var(--display); font-size: 25px; line-height: 1.3; overflow-wrap: anywhere; }
.details dd a { text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.details dd a:hover { border-bottom-color: var(--brass); }

.form { display: grid; gap: 22px; }
.form .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--rule-strong); border-radius: 2px;
  background: var(--ink-raised); color: var(--text); font: 400 16px/1.5 var(--body);
}
.field textarea { min-height: 168px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 1px var(--brass); }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { font-size: 15px; color: var(--brass-strong); min-height: 1.5em; }
.hidden-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */

.site-footer { border-top: 1px solid var(--rule); padding: clamp(56px, 7vw, 88px) 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; }
.footer-grid p { color: var(--muted); max-width: 24em; margin-top: 18px; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--text); }
.footer-contact { display: grid; gap: 10px; color: var(--muted); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px;
  margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--muted);
}
.footer-base p { max-width: 62em; }

/* Responsive */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .compass { max-width: 340px; margin: 8px auto 0 0; }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 88px; z-index: 5; background: var(--ink); border-bottom: 1px solid var(--rule); }
  .site-nav.open { display: block; }
  .site-header { position: relative; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
  .nav-links li { border-top: 1px solid var(--rule); }
  .nav-links a { display: block; padding: 16px 0; font-family: var(--display); font-size: 26px; color: var(--text); border-bottom: none; }
  .nav-links a[aria-current="page"] { color: var(--brass-strong); }
  .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .situations li { grid-template-columns: minmax(0, 1fr); }
  .models { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand span { font-size: 18px; letter-spacing: 0.24em; }
  .sector-list, .sectors, .steps, .form .pair, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .compass { max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
