/* GrayLocke Services — site styles
   Layout idea: law-firm restraint. Ink-dark hero and bands, cool paper body,
   one gunmetal accent, serif display set large with tracked uppercase labels. */
:root {
  --ink: #0e1215;
  --graphite: #182026;
  --dark: #2d3237;      /* dark gunmetal gray for dark bands */
  --darker: #24282c;    /* footer */
  --steel: #5a646d;
  --paper: #eef0f1;
  --white: #ffffff;
  --accent: #9ea8b1;
  --accent-soft: #d2d7dc;
  --line: rgba(14, 18, 21, 0.14);
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
h3 { font-size: 1.65rem; }
p { margin: 0; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 62ch; color: var(--steel); }
.label {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.dark .lede, .dark p { color: rgba(255, 255, 255, 0.72); }
.dark { background: var(--dark); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(45, 50, 55, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { font-family: var(--font-body); font-weight: 800; letter-spacing: 0.3em; font-size: 0.95rem; }
.brand-name span { font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--accent-soft); margin-top: 6px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a { text-decoration: none; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.78); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--accent); }
.nav .btn { border-bottom: 1px solid var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: var(--white); width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--dark); border-bottom: 1px solid var(--line-dark); padding: 8px var(--gutter) 24px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
  .nav .btn { margin-top: 16px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 28px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: var(--ink);
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.nav .btn { padding: 12px 20px; color: var(--ink); }
.nav .btn:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 11vw, 140px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero::after { /* fine architectural grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 120px 120px; opacity: 0.35;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 32px; }
.hero h1 { max-width: 20ch; }
.hero h1 em { font-style: italic; color: var(--accent-soft); }
.triad { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 0.8rem; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255,255,255,0.86); }
.triad span + span::before { content: "/"; color: var(--accent); margin-right: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.page-hero { padding: clamp(64px, 9vw, 116px) 0 clamp(48px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); max-width: 18ch; }

/* ---------- Photo frames ---------- */
.photo {
  position: relative; margin: 0; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #42494f, #2a2f34);
  aspect-ratio: 4 / 3;
}
.photo.wide { aspect-ratio: 21 / 9; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; filter: grayscale(0.15) contrast(1.03); }
.photo figcaption {
  position: absolute; left: 20px; bottom: 18px; z-index: 0;
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.photo::before { /* corner brackets */
  content: ""; position: absolute; inset: 18px; z-index: 0;
  border: 1px solid rgba(158,168,177,0.35);
  clip-path: polygon(0 0, 28px 0, 28px 1px, 1px 1px, 1px 28px, 0 28px, 0 0, 100% 0, 100% 28px, calc(100% - 1px) 28px, calc(100% - 1px) 1px, calc(100% - 28px) 1px, calc(100% - 28px) 0, 100% 0, 100% 100%, calc(100% - 28px) 100%, calc(100% - 28px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 28px), 100% calc(100% - 28px), 100% 100%, 0 100%, 0 calc(100% - 28px), 1px calc(100% - 28px), 1px calc(100% - 1px), 28px calc(100% - 1px), 28px 100%, 0 100%);
}
.hero-photo { margin-top: clamp(40px, 6vw, 72px); }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 9vw, 128px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .label { grid-column: 1 / -1; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service { padding: 40px 40px 44px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 8px 20px; }
.service:nth-child(odd) { border-right: 1px solid var(--line); }
.service:nth-child(even) { padding-left: 40px; }
.service .num { font-family: var(--font-display); font-size: 1.4rem; color: var(--accent); line-height: 1.3; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--steel); max-width: 46ch; }
.service ul { grid-column: 2; margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.service li { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--line); padding: 5px 10px; color: var(--steel); }
@media (max-width: 760px) {
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 32px 0; border-right: 0; }
  .service:nth-child(odd) { border-right: 0; }
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .copy { display: grid; gap: 22px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.checklist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.dark .checklist { border-color: var(--line-dark); }
.checklist li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; }
.dark .checklist li { border-color: var(--line-dark); color: rgba(255,255,255,0.82); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 24px; width: 12px; height: 1px; background: var(--accent); }

/* Standards band */
.standards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.standard { padding: 32px 28px 8px 0; display: grid; gap: 10px; align-content: start; }
.standard + .standard { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.standard strong { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--white); line-height: 1.15; }
.standard span { font-size: 0.95rem; color: rgba(255,255,255,0.66); }
@media (max-width: 900px) {
  .standards { grid-template-columns: 1fr 1fr; }
  .standard:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .standards { grid-template-columns: 1fr; }
  .standard + .standard { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
}

/* Statement */
.statement { background: var(--white); }
.statement blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.22; max-width: 28ch; text-wrap: balance; }
.statement blockquote em { color: var(--accent); }

/* Principles (about) */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 36px 32px 8px 0; display: grid; gap: 12px; align-content: start; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line); }
.principle p { color: var(--steel); }
@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; }
  .principle + .principle { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--steel); padding-right: 32px; padding-top: 19px; }
.facts dd { font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

/* Roles (careers) */
.roles { display: grid; border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 16px 48px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start; }
.role h3 { font-size: 1.55rem; }
.role .meta { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-top: 8px; }
.role p { color: var(--steel); }
.role .btn { white-space: nowrap; }
@media (max-width: 860px) { .role { grid-template-columns: 1fr; } .role .btn { justify-self: start; } }

/* ---------- Contact ---------- */
.contact .split { align-items: start; }
.contact-details { display: grid; gap: 6px; margin-top: 12px; }
.contact-details a { color: var(--accent-soft); text-decoration: none; border-bottom: 1px solid rgba(210,215,220,0.4); }
.contact-details a:hover { border-color: var(--accent-soft); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,0.7); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--white);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark); border-radius: 0;
  padding: 14px 16px; width: 100%;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--ink); background: var(--white); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.07); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; }
.form-note { font-size: 0.85rem; color: rgba(255,255,255,0.55); max-width: 46ch; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-left: 2px solid var(--accent); background: rgba(158,168,177,0.12); color: var(--white); display: none; }
.form-status.show { display: block; }
.form-status.error { border-color: #d27a6b; background: rgba(210,122,107,0.12); }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--darker); color: rgba(255,255,255,0.6); padding: 64px 0 40px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.site-footer h4 { margin: 0 0 14px; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-soft); font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--white); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; font-size: 0.8rem; color: rgba(255,255,255,0.45); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; }

/* ---------- v2 additions ---------- */
.site-header .wrap { height: 84px; }
.brand-emblem { height: 52px; width: auto; flex: none; }
@media (max-width: 860px) { .nav { top: 84px; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-grid .copy { display: grid; gap: 28px; }
.hero-emblem { justify-self: center; width: min(100%, 340px); filter: drop-shadow(0 30px 50px rgba(0,0,0,0.55)); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-emblem { width: 200px; order: -1; justify-self: start; } }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.card { padding: 36px 28px 40px 0; display: grid; gap: 14px; align-content: start; text-decoration: none; }
.card + .card { padding-left: 28px; border-left: 1px solid var(--line); }
.card .num { font-family: var(--font-display); font-size: 1.3rem; color: var(--steel); }
.card p { color: var(--steel); font-size: 0.97rem; }
.card .more { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--accent); justify-self: start; padding-bottom: 4px; margin-top: 6px; }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } .card:nth-child(3) { padding-left: 0; border-left: 0; } .card:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .card + .card { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.client { padding: 32px 28px 8px 0; display: grid; gap: 10px; align-content: start; }
.client + .client { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.client strong { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; color: var(--white); }
.client span { color: rgba(255,255,255,0.68); }
@media (max-width: 760px) { .clients { grid-template-columns: 1fr; } .client + .client { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); } }

.service-block { border-top: 1px solid var(--line); }
.service-block:first-of-type { border-top: 0; }
.service-block .num { font-family: var(--font-display); font-size: 1.4rem; color: var(--steel); }
.tag-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--line); padding: 6px 12px; color: var(--ink); background: var(--white); }
.callout { border-left: 2px solid var(--accent); padding: 14px 18px; background: var(--white); color: var(--ink); }
.callout strong { font-weight: 700; }

.join { text-align: left; }
.join .copy { display: grid; gap: 24px; max-width: 720px; }
.join .email { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--white); text-decoration: none; border-bottom: 1px solid var(--accent); justify-self: start; }
.join .email:hover { color: var(--accent-soft); }

/* Our Standard: copy left, wide officer + vehicle photo right */
.standard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.standard-grid .copy { display: grid; gap: 20px; }
.stack { display: grid; border-top: 1px solid var(--line-dark); margin-top: 8px; }
.stack .client { padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.stack .client strong { font-size: 1.4rem; }
.standard-photo { width: 100%; height: auto; }
@media (max-width: 960px) { .standard-grid { grid-template-columns: 1fr; } }

/* Legal pages */
.legal-doc { background: var(--white); }
.doc { max-width: 72ch; display: grid; gap: 16px; }
.doc h2 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; margin-top: 24px; }
.doc p, .doc li { color: #3c444b; }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.doc a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal-links { display: flex; gap: 24px; }
.legal-links a { color: rgba(255,255,255,0.7); }

/* 404 */
.notfound { min-height: 64vh; display: grid; align-content: center; }
.nf-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.nf-grid .copy { display: grid; gap: 22px; }
.nf-code { font-family: var(--font-display); font-weight: 500; font-size: clamp(7rem, 18vw, 15rem); line-height: 0.85; color: transparent; -webkit-text-stroke: 1.5px var(--accent); letter-spacing: -0.02em; }
@media (max-width: 760px) { .nf-grid { grid-template-columns: 1fr; } }
