/* ==========================================================================
   Nunn Law Office 2026: homepage (front page only). Ported from the approved
   KN Beta concept; .hero is .kn-hero and .results is .home-results here so
   they don't collide with the GenerateBlocks classes of the same names.
   ========================================================================== */

/* The concept's resets, scoped to the homepage */
.kn-home :is(h1, h2, h3, p, figure, blockquote) { margin: 0; }
/* Lists: each component sets its own margins (.areas sits 48-72px below the intro) */
:where(.kn-home) :where(ol, ul) { padding: 0; }
.kn-home img { display: block; max-width: 100%; height: auto; }
.kn-home a { color: inherit; }
/* GP makes #content a flex row: without these the tickers' max-content tracks set the page width */
.kn-home { flex: 1 1 100%; min-width: 0; width: 100%; background: var(--bg); color: var(--text); }

/* Hero */
.kn-hero {
  position: relative;
  min-height: max(680px, calc(100svh - 68px));
  display: grid;
  /* Copy sits between centered and bottom-anchored: 3/4 of the spare height above it, 1/4 below */
  grid-template-rows: 3fr auto 1fr;
  overflow: hidden;
  background: radial-gradient(70% 60% at 18% 110%, rgba(180, 15, 31, 0.42), transparent 70%), var(--black);
}
.hero__media {
  position: absolute;
  inset: var(--notice-h) 0 0 auto;
  width: 64%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 22%, #000 46%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 22%, #000 46%);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 22%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 10, 0.55) 0%, transparent 22%, transparent 62%, var(--black) 100%); }
.hero__caption { position: absolute; right: var(--gutter); bottom: 48px; z-index: 2; display: grid; gap: 4px; min-width: 260px; padding-top: 14px; border-top: 1px solid var(--line); text-align: right; }
.hero__caption strong { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hero__caption span { font-size: 14px; color: var(--muted); }
.hero__content { grid-row: 2; position: relative; z-index: 1; padding: calc(var(--notice-h) + var(--header-h) + 20px) 0 44px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(13px, 0.98vw, 15px); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.kn-hero .hero__eyebrow { margin: 0; font-family: var(--body); line-height: 1.4; }
.hero__eyebrow sup { font-size: 0.7em; letter-spacing: 0; margin-left: 1px; }
.kn-hero .hero__title { margin-top: 18px; font-size: clamp(46px, 7.2vw, 120px); line-height: 0.84; }
.h-line { display: block; overflow: hidden; padding-bottom: 0.02em; }
.h-line > span { display: block; }
.kn-hero .hero__title em { font-style: normal; color: var(--yellow); }
.hero__row { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 30px; }
.hero__lede { max-width: 22.5em; font-size: clamp(19px, 1.45vw, 23px); line-height: 1.55; color: var(--muted); }
.hero__lede strong { color: var(--text); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; font-size: 15px; color: var(--muted); }
.hero__trust b { color: var(--text); font-weight: 600; }
.g-logo { width: 22px; height: 22px; flex: none; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }

/* Load animation */
.js .h-line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 120ms); }
.js .hero__media img { opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 2.4s var(--ease); }
.js .hero__fade { opacity: 0; transform: translateY(16px); transition: opacity 0.9s ease, transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 1ms + 500ms); }
.is-loaded .h-line > span, .is-loaded .hero__fade { transform: none; opacity: 1; }
.is-loaded .hero__media img { opacity: 1; transform: none; }

/* Results ticker */
.marquee { position: relative; z-index: 2; display: flex; overflow: hidden; background: var(--red); color: #fff; }
.marquee__label { flex: none; display: flex; align-items: center; gap: 0.3em; margin: 0; padding: 0 52px 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2)); background: var(--red-deep); clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%); font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: 0.01em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.marquee__label b { color: var(--yellow); font-weight: 800; }
.marquee__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.marquee__track { display: flex; width: max-content; animation: marquee 68s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 40px; padding: 18px 40px 18px 0; line-height: 1; }
.mq { display: inline-flex; align-items: baseline; gap: 14px; white-space: nowrap; font-family: var(--display); text-transform: uppercase; }
.mq b { font-size: 32px; font-weight: 800; letter-spacing: 0.01em; }
.mq span { font-size: 18px; font-weight: 600; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.72); }
.mq-sep { flex: none; width: 9px; height: 9px; background: var(--yellow); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Proof */
.proof { padding-top: clamp(56px, 6vw, 88px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); container-type: inline-size; --stat-size: min(132px, 8.6cqi); }
.stat { min-width: 0; padding: 8px clamp(12px, 2vw, 32px); text-align: center; }
.stat + .stat { border-left: 1px solid var(--line-ink); }
.stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5.6vw, 96px); font-size: var(--stat-size); line-height: 0.85; letter-spacing: -0.01em; white-space: nowrap; }
.stat strong i { font-style: normal; color: var(--red); }
.stat > span { display: block; margin-top: 22px; font-size: 17px; line-height: 1.45; color: var(--ink-muted); text-wrap: balance; }
.stat > span::before { content: ""; display: block; width: 28px; height: 2px; margin: 0 auto 16px; background: var(--red); }
.awards-band { margin-top: clamp(48px, 5vw, 72px); padding-bottom: clamp(36px, 4vw, 56px); }
.awards { display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line-ink); }
.awards p { flex: none; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); }
.awards__marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.awards__rail { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.awards ul { flex: none; display: flex; align-items: center; gap: clamp(44px, 5vw, 80px); margin: 0; padding: 8px clamp(44px, 5vw, 80px) 8px 0; list-style: none; }
/* Badges come in mixed shapes; these heights give them a similar visual weight */
.awards img { height: 48px; width: auto; object-fit: contain; transition: transform 0.4s var(--ease); }
.awards img.tall { height: 80px; }
.awards img.square { width: 88px; height: 88px; object-fit: cover; filter: brightness(1.02); }
.awards img.wide { height: 72px; }
.awards img:hover { transform: translateY(-4px); }

/* Results ledger */
.home-results { --line: rgba(255, 255, 255, 0.24); --muted: rgba(255, 255, 255, 0.82); --faint: rgba(255, 255, 255, 0.62); position: relative; overflow: hidden; background: radial-gradient(70% 80% at 100% 0%, rgba(255, 255, 255, 0.08), transparent 60%), linear-gradient(160deg, var(--red) 0%, var(--red-deep) 55%, #6e0914 100%); color: #fff; }
.home-results .kicker { color: rgba(255, 255, 255, 0.82); }
.home-results .ledger li::before { background: rgba(0, 0, 0, 0.26); }
.ledger { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.ledger li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 24px;
  padding: 26px 24px;
  border-top: 1px solid var(--line);
  isolation: isolate;
}
.ledger li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.ledger li:hover::before { transform: scaleX(1); }
.ledger .amt { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 7vw, 112px); line-height: 0.85; text-transform: uppercase; }
.ledger .amt sup { font-size: 0.42em; vertical-align: 0.95em; margin-right: 4px; color: var(--yellow); }
.ledger .amt small { font-size: 0.42em; margin-left: 6px; color: var(--muted); transition: color 0.4s; }
.ledger .what { font-size: 20px; line-height: 1.35; }
.ledger .tag { justify-self: end; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); transition: color 0.4s; }
.ledger li:hover .amt small, .ledger li:hover .tag { color: rgba(255, 255, 255, 0.85); }
.ledger__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; }
.ledger__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.ledger__foot .link { color: #fff; }

/* Practice index */
.practice__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: stretch; }
.practice__intro { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; }
.practice__photo { position: relative; min-height: 360px; margin: 0; border-radius: 28px; overflow: hidden; }
.practice__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform 1.2s var(--ease); }
.practice__photo:hover img { transform: scale(1.04); }
.practice__intro p { font-size: 19px; color: var(--ink-muted); max-width: 500px; }
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); margin: clamp(48px, 5vw, 72px) 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line-ink); container-type: inline-size; }
.areas a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px 2px;
  border-top: 1px solid var(--line-ink);
  text-decoration: none;
  transition: color 0.35s, padding 0.45s var(--ease);
}
.areas__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--light); color: var(--red); transition: background-color 0.35s, color 0.35s; }
.areas__icon svg { width: 22px; height: 22px; }
.areas strong { font-family: var(--display); font-size: clamp(22px, 2.05cqi, 30px); font-weight: 800; text-transform: uppercase; line-height: 1; }
.areas a > svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-ink); transition: transform 0.45s var(--ease), background-color 0.35s, color 0.35s, box-shadow 0.35s; }
.areas a:hover { color: var(--red); padding-left: 8px; }
.areas a:hover > svg { transform: rotate(-45deg); background: var(--red); color: #fff; box-shadow: none; }
.areas a:hover .areas__icon { background: var(--red); color: #fff; }

/* Process */
.process { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--red) 0%, var(--red-deep) 50%, var(--red-ink) 100%); color: #fff; }
.process .kicker { color: rgba(255, 255, 255, 0.75); }
.process .head > p { color: rgba(255, 255, 255, 0.82); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; gap: 16px; align-content: start; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.steps li::before { counter-increment: step; content: "0" counter(step); font-family: var(--display); font-weight: 800; font-size: clamp(110px, 12vw, 190px); line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55); }
.steps h3 { font-family: var(--display); font-size: 40px; font-weight: 800; text-transform: uppercase; line-height: 0.95; }
.steps p { color: rgba(255, 255, 255, 0.82); font-size: 17px; max-width: 340px; }
.process__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(48px, 5vw, 72px); }
.process__cta .btn--outline { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.process__cta .btn--outline { --btn-hover-bg: #fff; --btn-hover-fg: var(--red); }

/* Statement */
.statement { background: var(--bg); }
.statement__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: stretch; }
.statement__grid > .video { aspect-ratio: auto; min-height: 380px; }
.statement__copy { display: grid; gap: 28px; }
.statement__copy > div { display: grid; gap: 24px; }
.statement h2 { font-size: clamp(48px, 5.4vw, 92px); }
.statement h2 em { font-style: normal; color: var(--yellow); white-space: nowrap; }
.says { font-size: clamp(19px, 1.45vw, 22px); line-height: 1.6; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px var(--line), 0 60px 120px -60px rgba(0, 0, 0, 0.9); }
.video iframe { display: block; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; }
.video__play img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 35%; transition: transform 1.2s var(--ease); }
.video__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 10, 0.15) 35%, rgba(8, 8, 10, 0.8) 100%); }
.video__play:hover img { transform: scale(1.03); }
.video__btn { position: absolute; left: 50%; top: 50%; z-index: 1; width: clamp(76px, 8vw, 116px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); transform: translate(-50%, -50%); transition: transform 0.45s var(--ease); }
.video__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(246, 216, 20, 0.55); animation: ring 2.4s ease-out infinite; }
.video__btn svg { width: 36%; height: 36%; margin-left: 6%; }
.video__play:hover .video__btn { transform: translate(-50%, -50%) scale(1.08); }
@keyframes ring { to { box-shadow: 0 0 0 28px rgba(246, 216, 20, 0); } }
.video__meta { position: absolute; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: clamp(18px, 3vw, 36px); z-index: 1; display: grid; gap: 6px; }
.video__meta strong { font-family: var(--display); font-size: clamp(22px, 2.2vw, 34px); font-weight: 800; text-transform: uppercase; line-height: 1; }
.video__meta span { font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.says .w { opacity: 0.22; transition: opacity 0.4s ease; }
.says .w.is-lit { opacity: 1; }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(56px, 6vw, 96px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.promises li { display: grid; gap: 12px; align-content: start; padding: 36px 32px 36px 0; border-bottom: 1px solid var(--line); }
.promises li:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.promises svg { width: 30px; height: 30px; color: var(--yellow); }
.promises h3 { font-family: var(--display); font-size: clamp(30px, 2.6vw, 38px); font-weight: 800; text-transform: uppercase; line-height: 1; }
.promises p { color: var(--muted); font-size: 17px; max-width: 320px; }

/* Reviews */
.reviews__widget { min-width: 0; max-width: 100%; min-height: 280px; overflow-x: clip; }
.reviews__all { justify-self: end; }

/* Legacy */
.legacy { position: relative; overflow: hidden; background: #050506; min-height: min(920px, 100svh); display: grid; align-items: center; }
.legacy__img { position: absolute; inset: 0 auto 0 0; width: 62%; }
.legacy__img img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 30%; -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 100%); mask-image: linear-gradient(90deg, #000 45%, transparent 100%); }
.legacy__year { position: absolute; right: -2vw; bottom: -5vw; font-family: var(--display); font-weight: 800; font-size: 34vw; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09); pointer-events: none; user-select: none; }
.legacy__copy { position: relative; z-index: 1; display: grid; gap: 26px; width: min(560px, 100%); margin-left: auto; padding-block: clamp(72px, 8vw, 112px); }
.legacy__copy > p { color: var(--muted); }
.legacy blockquote { padding-left: 24px; border-left: 2px solid var(--yellow); font-family: var(--display); font-size: clamp(30px, 3vw, 44px); font-weight: 800; text-transform: uppercase; line-height: 1; }
.legacy__links { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.legacy__links .link { color: var(--yellow); }

/* Offices + FAQ */
.offices__title { font-size: clamp(44px, 4.6vw, 72px); }
.offices { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); min-height: 460px; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line-ink), 0 30px 60px -40px rgba(13, 13, 15, 0.45); }
.offices__map { position: relative; grid-column: 2; grid-row: 1; background: #e7e7ea; }
.offices__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.75) contrast(1.03); transition: filter 0.5s ease; }
.offices__map:hover iframe, .offices__map:focus-within iframe { filter: none; }
.offices__panel { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; padding: 14px 34px 32px; background: #fff; box-shadow: 1px 0 0 var(--line-ink); }
.office { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 22px 0 22px 28px; border-bottom: 1px solid var(--line-ink); cursor: pointer; }
.office::before { content: ""; position: absolute; left: 0; top: 24px; width: 20px; height: 20px; background: rgba(13, 13, 15, 0.25); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 22s-7.5-6.4-7.5-12a7.5 7.5 0 0 1 15 0c0 5.6-7.5 12-7.5 12zm0-15a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 22s-7.5-6.4-7.5-12a7.5 7.5 0 0 1 15 0c0 5.6-7.5 12-7.5 12zm0-15a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6z'/%3E%3C/svg%3E") center / contain no-repeat; transition: background-color 0.3s; }
.office:hover::before { background: rgba(13, 13, 15, 0.45); }
.office.is-active::before { background: var(--red); }
.office h3 { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1; text-transform: uppercase; color: var(--ink-muted); transition: color 0.3s; }
.office:hover h3, .office.is-active h3 { color: var(--ink); }
.office__select { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.office__select::after { content: ""; position: absolute; inset: 0; }
.office__select:focus { outline: none; }
.office__select:focus-visible::after { outline: 2px solid var(--red); outline-offset: -2px; border-radius: 8px; }
.office address { grid-column: 1; margin-top: 6px; font-style: normal; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.office__dir { position: relative; z-index: 1; grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-ink); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.office__dir svg { width: 16px; height: 16px; transform: rotate(-45deg); transition: transform 0.4s var(--ease); }
.office__dir:hover, .office__dir:focus-visible { background: var(--red); color: #fff; box-shadow: none; }
.office__dir:hover svg { transform: rotate(0deg); }
.offices__call { display: grid; gap: 12px; margin-top: auto; padding-top: 22px; }
.offices__call p { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.offices__call p svg { width: 20px; height: 20px; color: var(--red); }
.offices__call .btn { width: 100%; min-height: 54px; }
.offices__call small { font-size: 14px; text-align: center; color: var(--ink-muted); }
.offices__call small a { color: inherit; }

.faq-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-split > div:first-child { display: grid; gap: 24px; }
.faq__call { display: grid; justify-items: start; gap: 18px; margin-top: 8px; }
.faq__call p { font-size: 18px; color: var(--ink-muted); }
.faq-list { border-top: 1px solid var(--line-ink); }
.faq-list details { border-bottom: 1px solid var(--line-ink); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; font-size: 21px; font-weight: 500; line-height: 1.3; cursor: pointer; list-style: none; transition: color 0.3s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--red); }
.faq-list summary i { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-ink); color: var(--ink); transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq-list summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details[open] summary i { transform: rotate(45deg); background: var(--ink); color: #fff; box-shadow: none; }
.faq-list details p { max-width: 640px; padding: 0 0 28px; color: var(--ink-muted); }


/* Video lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: clamp(16px, 5vw, 72px); }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(5, 5, 6, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: lb-fade 0.45s ease both; }
.lightbox__frame { position: relative; width: min(100%, 1320px, calc((100svh - 2 * clamp(16px, 5vw, 72px)) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 80px 160px -60px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08); animation: lb-zoom 0.6s var(--ease) both; }
.lightbox__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.lightbox__close { position: absolute; top: clamp(12px, 2vw, 24px); right: clamp(12px, 2vw, 24px); z-index: 1; width: 52px; height: 52px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease); }
.lightbox__close:hover { background: var(--yellow); color: var(--ink); transform: rotate(90deg); }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__note { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; background: linear-gradient(rgba(8, 8, 10, 0.72), rgba(8, 8, 10, 0.86)), url("img/home/video-poster.jpg") center / cover; }
.lightbox__note p { max-width: 460px; color: var(--muted); }
.lightbox__note strong { display: block; margin-bottom: 6px; color: #fff; font-family: var(--display); font-size: 30px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.memorial__card { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); width: min(100%, 1080px); max-height: calc(100svh - 2 * clamp(16px, 5vw, 72px)); border-radius: 24px; overflow: hidden; background: var(--bg-2); box-shadow: 0 80px 160px -60px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08); animation: lb-zoom 0.6s var(--ease) both; }
.memorial__photo { position: relative; margin: 0; min-height: 320px; background: #050506; }
.memorial__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.memorial__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--bg-2) 100%); }
.memorial__copy { display: grid; align-content: start; gap: 16px; padding: clamp(28px, 4vw, 56px); overflow-y: auto; }
.memorial__copy h2 { margin-bottom: 6px; font-size: clamp(36px, 3.6vw, 56px); }
.memorial__copy p { color: var(--muted); font-size: 17px; }
.memorial__copy .link { justify-self: start; margin-top: 8px; color: var(--yellow); }
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-zoom { from { opacity: 0; transform: scale(0.94) translateY(16px); } }


/* Responsive */
@media (max-width: 1100px) {
  .areas {grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas strong {font-size: clamp(20px, 3cqi, 30px); }
}
@media (max-width: 1024px) and (orientation: portrait), (max-width: 760px) {
  .kn-hero {display: block; min-height: 0; padding-top: var(--notice-h); }
  .hero__media {position: relative; inset: auto; width: 100%; height: 58svh; min-height: 380px; max-height: 600px; margin-top: var(--header-h); }
  .hero__media {-webkit-mask-image: none; mask-image: none; }
  .hero__media img {object-position: 54% 18%; }
  .hero__media::after {background: linear-gradient(180deg, rgba(8, 8, 10, 0.5) 0%, transparent 25%, transparent 50%, var(--black) 98%); }
  .hero__caption {display: none; }
  .hero__content {margin-top: -120px; padding: 0 0 48px; }
  .kn-hero .hero__title {margin-top: 18px; font-size: clamp(52px, 12vw, 110px); }
}
@media (max-width: 1024px) {
  .statement__grid > .video {aspect-ratio: 16 / 9; min-height: 0; }
  .practice__grid, .statement__grid, .faq-split {grid-template-columns: minmax(0, 1fr); }
  .offices {grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; overflow: visible; border-radius: 0; background: none; box-shadow: none; }
  .offices__map, .offices__panel {grid-column: auto; grid-row: auto; }
  .offices__map {position: relative; min-height: 380px; border-radius: 22px; overflow: hidden; background: #e7e7ea; box-shadow: 0 1px 0 var(--line-ink), 0 30px 60px -40px rgba(13, 13, 15, 0.5); }
  .offices__panel {position: static; width: auto; padding: 0; background: none; box-shadow: none; }
  .offices__call {padding-top: 26px; }
  .practice__photo {min-height: 0; aspect-ratio: 2 / 1; border-radius: 22px; }
  .stats {grid-template-columns: repeat(2, minmax(0, 1fr)); --stat-size: min(160px, 20cqi); }
  .stat:nth-child(3) {border-left: 0; }
  .stat:nth-child(n + 3) {margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--line-ink); }
  .awards {flex-direction: column; align-items: flex-start; }
  .awards__marquee {width: 100%; }
  .ledger li {grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .ledger .tag {display: none; }
  .reviews__all {justify-self: start; }
  .steps {grid-template-columns: 1fr; }
  .promises {grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promises li:not(:nth-child(3n + 1)) {padding-left: 0; border-left: 0; }
  .promises li:nth-child(2n) {padding-left: 28px; border-left: 1px solid var(--line); }
  .legacy {display: block; min-height: 0; }
  .legacy__img {position: relative; inset: auto; width: 100%; height: 60svh; max-height: 620px; }
  .legacy__img img {-webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .legacy__copy {margin: -96px 0 0; padding: 0 0 96px; width: 100%; max-width: 680px; }
}
@media (max-width: 760px) {
  .hero__media {height: 46svh; min-height: 320px; }
  .hero__content {margin-top: -96px; padding-bottom: 40px; }
  .kn-hero .hero__title {font-size: clamp(44px, 14vw, 78px); }
  .hero__row {margin-top: 22px; gap: 20px; }
  .hero__ctas {gap: 10px; }
  .hero__ctas {width: 100%; }
  .mq b {font-size: 26px; }
  .marquee__label {flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding-right: 36px; font-size: 17px; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
  .mq span {font-size: 15px; }
  .stat {padding-inline: 10px; }
  .stat > span {font-size: 15px; }
  .awards img {height: 38px; }
  .awards img.tall {height: 64px; }
  .awards img.square {width: 70px; height: 70px; }
  .awards img.wide {height: 58px; }
  .ledger li {grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .ledger li::before {inset: 0 calc(var(--gutter) * -1); }
  .ledger .what {font-size: 17px; color: var(--muted); }
  .practice__photo {aspect-ratio: 16 / 10; }
  .areas {grid-template-columns: minmax(0, 1fr); }
  .areas strong {font-size: clamp(20px, 6.4cqi, 28px); }
  .areas a {grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; padding: 11px 0; }
  .areas__icon {width: 38px; height: 38px; border-radius: 10px; }
  .areas__icon svg {width: 20px; height: 20px; }
  .areas a > svg {width: 28px; height: 28px; }
  .areas a:hover {padding-left: 6px; }
  .steps li::before {font-size: 96px; }
  .steps h3 {font-size: 34px; }
  .promises {grid-template-columns: 1fr; }
  .video {border-radius: 20px; }
  .memorial__card {grid-template-columns: 1fr; overflow-y: auto; }
  .memorial__photo {min-height: 220px; }
  .memorial__photo::after {background: linear-gradient(180deg, transparent 50%, var(--bg-2) 100%); }
  .memorial__copy {overflow: visible; }
  .video__meta {display: none; }
  .video__btn {width: 64px; }
  .promises li, .promises li:nth-child(2n) {grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 8px 14px; padding: 24px 0; border-left: 0; }
  .promises svg {width: 26px; height: 26px; }
  .promises p {grid-column: 2; }
  .reviews__all {justify-self: start; }
  .offices__map {min-height: 300px; }
  .reviews__all {width: 100%; }
  .faq__call {justify-items: stretch; }
  .office__dir {width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__fade, .js .h-line > span, .js .hero__media img {opacity: 1; transform: none; }
  .says .w {opacity: 1; }
  .awards__marquee {-webkit-mask-image: none; mask-image: none; }
  .awards ul {flex-wrap: wrap; flex: 1; padding-right: 0; }
  .awards__rail {width: auto; }
  .awards__rail ul[aria-hidden] {display: none; }
}
@media (max-width: 760px) {
  body.kn2026 :is(.practice__intro, .ledger__ctas, .process__cta, .faq__call) .btn, body.kn2026 .reviews__all { width: 100%; }
  .faq__call { justify-items: stretch; }
}
