/* ==========================================================================
   SKO Advocates LLP — v1
   ========================================================================== */

:root {
  --ink: #0f171e;
  --ink-2: #16212a;
  --ink-line: rgba(236, 229, 216, 0.14);
  --ivory: #f5f1e9;
  --ivory-2: #ece6da;
  --paper: #fbf9f5;
  --text: #1b2329;
  --muted: #5d656b;
  --muted-on-ink: #a7a59f;
  --brass: #a8895a;
  --brass-soft: #c7ae84;
  --line: rgba(15, 23, 30, 0.12);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --section: clamp(96px, 14vw, 200px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.25em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

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

:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--ivory); padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

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

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6.2vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.display em, .h2 em, .quote em { font-style: italic; color: var(--brass); }

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
}

.link {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease), color 0.3s;
}
.link .arrow { transition: transform 0.5s var(--ease); }
.link:hover { background-size: 30% 1px; }
.link--email { text-transform: none; letter-spacing: 0.04em; font-size: 15px; font-weight: 400; }
.link:hover .arrow { transform: translateX(6px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--ivory);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s, padding 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 96px; transition: height 0.5s var(--ease);
}
.site-header.is-solid,
.site-header.is-light {
  background: rgba(251, 249, 245, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.site-header.is-solid .wrap { height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 16px; line-height: 1; position: relative; z-index: 60; }
.brand-mark {
  font-family: var(--serif);
  font-size: 30px; font-weight: 500;
  letter-spacing: 0.16em;
  padding-right: 16px;
  border-right: 1px solid currentColor;
  opacity: 0.95;
}
.brand-sub {
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  line-height: 1.6;
}

.nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); }
.nav a {
  font-size: 11.5px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta {
  border: 1px solid currentColor; padding: 11px 20px;
  transition: background 0.4s, color 0.4s;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--brass); border-color: var(--brass); color: var(--paper); }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 10px; margin-right: -10px;
  color: inherit; cursor: pointer;
}
.menu-toggle span {
  display: block; width: 26px; height: 1px; background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.menu-toggle span + span { margin-top: 8px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 30px;
    background: var(--ink); color: var(--ivory);
    opacity: 0; visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
  }
  .nav a { font-family: var(--serif); font-size: 30px; letter-spacing: 0.02em; text-transform: none; font-weight: 300; }
  .nav .nav-cta { font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 12px; font-weight: 400; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  body.menu-open .site-header { color: var(--ivory); background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.menu-open .menu-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  body.menu-open .menu-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .brand-mark { font-size: 26px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  background: var(--ink);
  color: var(--ivory);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  padding: 160px 0 clamp(48px, 8vh, 96px);
}
.hero::before {
  /* fine vertical rules */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, var(--ink-line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: 0.45;
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 75% 20%, rgba(168, 137, 90, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-monogram {
  position: absolute; right: -0.04em; top: 50%;
  transform: translateY(-58%);
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(220px, 34vw, 560px);
  line-height: 0.8; letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(199, 174, 132, 0.16);
  user-select: none; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .display { max-width: 20ch; margin: 28px 0 0; }
.hero-foot {
  margin-top: clamp(48px, 9vh, 110px);
  padding-top: 32px;
  border-top: 1px solid var(--ink-line);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
}
.hero-foot p { max-width: 46ch; margin: 0; color: var(--muted-on-ink); font-size: 15px; }
.hero-foot .link { color: var(--brass-soft); }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section--ivory { background: var(--ivory); }
.section--ink { background: var(--ink); color: var(--ivory); }

.section-head {
  display: grid; grid-template-columns: minmax(180px, 3fr) 9fr; gap: 32px;
  margin-bottom: clamp(56px, 8vw, 110px);
}
.section-head .index {
  font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--muted);
  padding-top: 6px;
}
.section-head .index b { font-style: normal; font-weight: 500; color: var(--brass); margin-right: 8px; }
.section--ink .section-head .index { color: var(--muted-on-ink); }

/* Firm */
.firm-grid { display: grid; grid-template-columns: minmax(180px, 3fr) 9fr; gap: 32px; }
.firm-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); margin-top: 56px; color: var(--muted); }
.principles {
  margin-top: clamp(72px, 10vw, 140px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.principle { padding: 36px 32px 0 0; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line); }
.principle h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin-bottom: 12px; }
.principle p { color: var(--muted); font-size: 15px; margin: 0; }
.principle .num { display: block; font-size: 11px; letter-spacing: 0.24em; color: var(--brass); margin-bottom: 22px; font-weight: 500; }

/* Practice */
.practice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.practice-item {
  display: grid; grid-template-columns: minmax(180px, 3fr) 5fr 4fr; gap: 32px;
  align-items: baseline;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.6s var(--ease);
}
.practice-item::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease);
}
.practice-item:hover::before { transform: scaleX(1); }
.practice-item .num { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 17px; }
.practice-item h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(26px, 2.7vw, 38px); line-height: 1.15;
  transition: transform 0.6s var(--ease), color 0.4s;
}
.practice-item:hover h3 { transform: translateX(10px); color: var(--brass); }
.practice-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* Partners */
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.partner-card { display: block; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--ink-2);
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.96);
  transform: scale(1.02);
  transition: transform 1.4s var(--ease), filter 1s var(--ease);
}
.portrait::after {
  /* warm duotone wash */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(168,137,90,0) 40%, rgba(15,23,30,0.35) 100%);
  mix-blend-mode: multiply; pointer-events: none;
}
.partner-card:hover .portrait img { transform: scale(1.06); filter: grayscale(0.85) contrast(1.06); }
.portrait--placeholder {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(168,137,90,0.16), transparent 65%),
    var(--ink);
}
.portrait--placeholder span {
  font-family: var(--serif); font-weight: 300; font-size: clamp(90px, 10vw, 150px);
  color: transparent; -webkit-text-stroke: 1px rgba(199, 174, 132, 0.55);
  transition: transform 1.2s var(--ease);
}
.partner-card:hover .portrait--placeholder span { transform: scale(1.06); }

.partner-meta { padding-top: 26px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.partner-meta h3 { font-family: var(--serif); font-size: clamp(26px, 2.3vw, 32px); font-weight: 400; line-height: 1.1; }
.partner-meta .role { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.partner-meta .arrow-circle {
  flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.partner-card:hover .arrow-circle { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* Quote band */
.quote-band { padding: clamp(110px, 16vw, 220px) 0; text-align: center; }
.quote {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 4vw, 56px); line-height: 1.2;
  max-width: 22ch; margin: 0 auto;
}
.quote-band .mark { display: block; width: 1px; height: 64px; background: var(--brass); margin: 0 auto 48px; }

/* Insights */
.insights-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.insight {
  display: grid; grid-template-columns: minmax(180px, 3fr) 6fr 3fr; gap: 32px; align-items: baseline;
  padding: 36px 0; border-bottom: 1px solid var(--line);
}
.insight .cat { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); font-weight: 500; }
.insight h3 { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; line-height: 1.25; }
.insight .status { justify-self: end; font-family: var(--serif); font-style: italic; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 140px); }
.contact-details { margin-top: 48px; display: grid; gap: 34px; }
.contact-details dt { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-on-ink); margin-bottom: 8px; }
.contact-details dd { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.35; }
.contact-details a { transition: color 0.3s; }
.contact-details a:hover { color: var(--brass-soft); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field label {
  display: block; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted-on-ink); margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink-line);
  color: var(--ivory); font: inherit; font-size: 17px; font-weight: 300;
  padding: 8px 0 14px; border-radius: 0; outline: none;
  transition: border-color 0.4s;
  -webkit-appearance: none; appearance: none;
}
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted-on-ink) 50%), linear-gradient(135deg, var(--muted-on-ink) 50%, transparent 50%); background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--brass); }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--muted-on-ink); margin: 0; max-width: 44ch; }
.btn {
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--brass); color: var(--ink); border: 1px solid var(--brass);
  padding: 18px 30px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 0.4s, color 0.4s;
}
.btn:hover { background: transparent; color: var(--brass-soft); }
.form-status { grid-column: 1 / -1; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--brass-soft); margin: 0; min-height: 1em; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-on-ink); border-top: 1px solid var(--ink-line); padding: 72px 0 40px; font-size: 13px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; padding-bottom: 56px; border-bottom: 1px solid var(--ink-line); }
.site-footer .brand { color: var(--ivory); }
.footer-nav { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-nav a { letter-spacing: 0.2em; text-transform: uppercase; font-size: 11px; transition: color 0.3s; }
.footer-nav a:hover { color: var(--ivory); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 32px; }
.footer-bottom p { margin: 0; max-width: 70ch; }

/* ---------- Partner profile page ---------- */

.profile-hero { padding: 180px 0 var(--section); background: var(--paper); }
.profile-back { display: inline-flex; gap: 12px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 56px; transition: color 0.3s; }
.profile-back:hover { color: var(--brass); }
.profile-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.profile-grid .portrait { position: sticky; top: 110px; }
.profile-name { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: -0.015em; margin: 22px 0 18px; }
.profile-role { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.profile-body { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.profile-body p { color: var(--muted); }
.profile-body .lead { color: var(--text); margin-bottom: 1.2em; }
.profile-focus { margin-top: 64px; }
.profile-focus h2 { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); font-weight: 500; margin-bottom: 20px; }
.profile-focus ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.profile-focus li { font-family: var(--serif); font-size: 22px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.profile-contact { margin-top: 64px; display: flex; gap: 40px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

.hero .reveal { transition-duration: 1.6s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-item { grid-template-columns: 64px 1fr; }
  .practice-item p { grid-column: 2; }
}

@media (max-width: 760px) {
  .section-head, .firm-grid { grid-template-columns: 1fr; gap: 20px; }
  .firm-body { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 32px 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
  .practice-item { grid-template-columns: 1fr; gap: 10px; }
  .practice-item p { grid-column: auto; }
  .partners-grid { grid-template-columns: 1fr; gap: 56px; }
  .insight { grid-template-columns: 1fr; gap: 10px; }
  .insight .status { justify-self: start; }
  .contact-grid, .profile-grid { grid-template-columns: 1fr; }
  .profile-grid .portrait { position: relative; top: 0; max-width: 420px; }
  .form { grid-template-columns: 1fr; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero::before { background-size: calc(100% / 3) 100%; }
  .brand-sub { display: none; }
  .brand-mark { border-right: 0; padding-right: 0; }
  .site-header .wrap { height: 80px; }
  .profile-hero { padding-top: 130px; }
}
