/* Kenik Brissett: one person, two practices.
   Type: Cormorant Garamond (display caps, taken from her realty covers) + Work Sans.
   Five sizes: --t-small, --t-body, --t-lead, --t-head, and the fitted name. */

@property --s { syntax: "<number>"; inherits: true; initial-value: 50; }
@view-transition { navigation: auto; }

:root {
  --serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --sans: "Work Sans", system-ui, sans-serif;
  --t-small: 14px;
  --t-body: 18px;
  --t-lead: 30px;
  --t-head: clamp(46px, 1.4rem + 5.2vw, 108px);
  --m: clamp(16px, 2vw, 28px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* law */
  --law-bg: #f1f0ed;
  --law-surface: #e4e2dd;
  --law-ink: #18181a;
  --law-muted: #4f4e53;
  --law-red: #d2262d;
  --law-red-2: #b41d23;
  /* realty */
  --re-bg: #151e1b;
  --re-surface: #1e2a26;
  --re-ink: #ecebe6;
  --re-muted: #bdb6a8;
  --re-gold: #c0a063;
  --re-gold-2: #d4b67c;
}

.t-law { --bg: var(--law-bg); --surface: var(--law-surface); --ink: var(--law-ink); --muted: var(--law-muted); --accent: var(--law-red); --accent-2: var(--law-red-2); --on-accent: #fff; --paper: #f7f7f5; --paper-ink: var(--law-ink); }
.t-realty { --bg: var(--re-bg); --surface: var(--re-surface); --ink: var(--re-ink); --muted: var(--re-muted); --accent: var(--re-gold); --accent-2: var(--re-gold-2); --on-accent: #151e1b; --paper: #ecebe6; --paper-ink: #151e1b; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display { font-family: var(--serif); font-weight: 500; text-transform: uppercase; letter-spacing: -.01em; line-height: .88; }
.head { font: 500 var(--t-head)/.9 var(--serif); text-transform: uppercase; letter-spacing: -.01em; }
.lead { font-size: var(--t-lead); line-height: 1.3; font-family: var(--serif); font-weight: 500; }
.small { font-size: var(--t-small); }
.muted { color: var(--muted); }

/* Buttons: square, flat, one fill. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; font: 600 14px/1 var(--sans); letter-spacing: .01em; text-decoration: none; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 0; cursor: pointer; transition: background-color .3s var(--ease), transform .25s var(--ease); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover { background: var(--accent-2); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn.ink { background: var(--ink); color: var(--bg); }
.btn.ink:hover { background: var(--muted); }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-underline-offset .3s var(--ease), color .2s; }
.link:hover { text-underline-offset: 8px; color: var(--accent); }

/* Bar over the hero photograph */
.bar { position: absolute; inset: 0 0 auto; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 20px var(--m); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.bar a { text-decoration: none; position: relative; }
.bar a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.bar a:hover::after, .bar a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.bar nav { display: flex; gap: clamp(16px, 2.2vw, 34px); align-items: center; }
.bar .home { font-weight: 600; color: #18181a; } /* it sits on the paper half; the links on the right sit on the dark half */
.bar .menu { display: none; background: none; border: 0; color: inherit; font: inherit; padding: 8px 0; cursor: pointer; }

/* Name under a photograph (both homes) */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 58svh auto 1fr; background: var(--bg); }
.hero .photo { position: relative; overflow: hidden; }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; animation: drift 24s var(--ease-io) infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09) translate(-1%, 1%); } }
.hero .strip { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; padding: 24px var(--m) 0; }
.hero .strip p { max-width: 34em; }
.hero .strip .btn { justify-self: end; }
.hero .name { align-self: end; padding: 0 var(--m) 22px; view-transition-name: kb-name; transform-origin: 50% 100%; }
.name .ln { display: inline-block; white-space: nowrap; }
.fit { white-space: nowrap; font-size: 11vw; }

/* Scaling wordmark (signature move) */
@supports (animation-timeline: view()) {
  .hero .name { animation: name-out linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  @keyframes name-out { to { transform: scale(.93); opacity: .55; } }
  .foot .mark { animation: name-in linear both; animation-timeline: view(); animation-range: entry 10% cover 50%; }
  @keyframes name-in { from { transform: scale(.94); } to { transform: none; } }
}

/* Entrances */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* Section rhythm */
.sec { padding: clamp(110px, 13vw, 200px) var(--m); }
.measure { max-width: 52ch; }

/* Showcase: one frame, three distances */
.dist { position: relative; height: 240vh; }
.dist .stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1fr min(38vw, 60svh) 1fr; grid-template-rows: 1fr auto auto auto 1fr; align-items: center; overflow: hidden; }
.dist .top, .dist .bot { grid-column: 1 / -1; text-align: center; font-size: var(--t-head); }
.dist .top { grid-row: 2; margin-bottom: 18px; }
.dist .frame { grid-column: 2; grid-row: 3; aspect-ratio: 4 / 5; max-height: 66svh; overflow: hidden; position: relative; z-index: 1; justify-self: center; width: 100%; }
.dist .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-io); transform-origin: var(--o, 50% 50%); }
.dist[data-stage="2"] .frame img { transform: scale(1.45); }
.dist[data-stage="3"] .frame img { transform: scale(2.1); }
.dist .bot { grid-row: 4; margin-top: -.3em; position: relative; z-index: 2; opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.dist[data-stage="2"] .bot, .dist[data-stage="3"] .bot { opacity: 1; transform: none; }
.dist .cap { grid-column: 3; grid-row: 3; align-self: start; max-width: 28ch; margin-left: 36px; opacity: 0; transform: translateX(-16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.dist[data-stage="3"] .cap { opacity: 1; transform: none; }
.dist .cap strong { display: block; font: 500 var(--t-lead)/1.15 var(--serif); margin-bottom: 10px; }
.dist .mk { position: absolute; left: 0; width: 1px; height: 1px; } /* taste-skill-ignore: invisible scroll markers, not a rule */
.dist .mk:nth-of-type(1) { top: 0; } .dist .mk:nth-of-type(2) { top: 75vh; } .dist .mk:nth-of-type(3) { top: 140vh; }

/* The printed sheet */
.sheetband { position: relative; padding: clamp(90px, 10vw, 160px) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); overflow: clip; gap: 0 16px; }
.sheetband .bgs { position: sticky; top: 10svh; grid-column: 1 / 7; grid-row: 1; align-self: start; width: min(100%, 64svh); aspect-ratio: 4 / 5; }
.sheetband .bgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .9s var(--ease), transform 2.4s var(--ease); }
.sheetband .bgs img.on { opacity: 1; transform: none; }
.sheetband .bgs .tag { position: absolute; left: 0; top: calc(100% + 14px); font-size: var(--t-small); max-width: 40ch; color: var(--muted); }
.sheet .it .th { display: none; }
.sheet { position: relative; grid-column: 7 / 13; width: 100%; max-width: 640px; justify-self: end; background: var(--paper); color: var(--paper-ink); padding: 64px; text-align: center; }
.sheet::before, .sheet::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--paper); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Ccircle cx='14' cy='14' r='14'/%3E%3C/svg%3E") repeat-x left bottom / 28px 14px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Ccircle cx='14' cy='14' r='14'/%3E%3C/svg%3E") repeat-x left bottom / 28px 14px; }
.sheet::before { top: -14px; }
.sheet::after { bottom: -14px; transform: scaleY(-1); }
.sheet h2 { font: 500 var(--t-head)/.9 var(--serif); text-transform: uppercase; letter-spacing: -.01em; }
.sheet .note { font-size: 14px; margin: 12px auto 0; max-width: 40ch; color: color-mix(in srgb, var(--paper-ink) 72%, transparent); }
.sheet .grp { margin-top: 88px; }
.sheet .grp h3 { font: 500 var(--t-lead)/1 var(--serif); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 22px; }
.sheet ul { max-width: 440px; margin: 0 auto; text-align: left; }
.sheet li + li { margin-top: 16px; }
.sheet .it { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; width: 100%; padding: 10px 12px; margin: -10px -12px; text-align: left; font: inherit; color: inherit; background: transparent; border: 0; cursor: default; transition: background-color .3s var(--ease); }
button.it { cursor: pointer; width: calc(100% + 24px); }
.sheet .it:hover, .sheet .it[aria-pressed="true"] { background: color-mix(in srgb, var(--paper-ink) 7%, transparent); }
.sheet .it b { font-weight: 600; font-size: 18px; }
.sheet .it .pr { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; text-align: right; white-space: nowrap; }
.sheet .it .ds { grid-column: 1 / -1; font-size: 14px; color: color-mix(in srgb, var(--paper-ink) 70%, transparent); }
.sheet .end { margin-top: 64px; font-size: 14px; }

/* One verb at a time: four words, set large */
.verbs { padding: clamp(100px, 11vw, 170px) var(--m); background: var(--vb, var(--ink)); color: var(--vf, var(--bg)); }
.verbs .steps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(72px, 8vw, 120px) clamp(24px, 4vw, 64px); }
.verbs .steps li:nth-child(even) { margin-top: clamp(0px, 10vw, 150px); }
.verbs .verb { font-size: clamp(64px, 2rem + 7vw, 150px); color: var(--vv, var(--accent)); }
.verbs .say { margin-top: 22px; max-width: 30ch; font: 500 var(--t-lead)/1.3 var(--serif); }

/* About: wide photo, colour tile, facts */
.about .intro { display: grid; gap: 24px; margin-bottom: 72px; }
.about .intro .lead { max-width: 36ch; }
.about .tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: start; }
.about .wide { grid-column: 1 / 9; display: grid; grid-template-columns: 5fr 3fr; gap: 24px; align-items: end; }
.about .wide img { width: 100%; height: auto; }
.about .wide p { font-size: 18px; }
.about .side { grid-column: 9 / 13; }
.about .tile { background: var(--accent); color: var(--on-accent); aspect-ratio: 4 / 3.4; display: grid; place-items: center; padding: 24px; position: relative; }
.about .tile svg { width: 100%; height: auto; overflow: visible; }
.about .tile .isl { fill: var(--tile-fill, rgba(0, 0, 0, .82)); }
.about .tile .dot { fill: var(--tile-dot, #fff); }
.about .tile .pulse { fill: none; stroke: var(--tile-dot, #fff); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.about .tile .lbl { font: 600 48px/1 var(--sans); fill: var(--tile-dot, #fff); }
.about dl { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-top: 24px; }
.about dt { font-size: var(--t-small); color: var(--muted); }
.about dd { font-weight: 600; font-size: 18px; margin-top: 4px; }

/* Contact: visit card on a photograph */
.visit { position: relative; min-height: 100svh; }
.visit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit .card { position: sticky; top: 60px; margin: 0 60px 0 auto; width: 400px; background: var(--paper); color: var(--paper-ink); padding: 32px 32px 0; border-radius: 8px; overflow: hidden; z-index: 1; }
.visit .wrapc { position: relative; padding: 60px 0; }
.visit .card h2 { font: 500 var(--t-lead)/1 var(--serif); text-transform: uppercase; margin-bottom: 18px; }
.visit .card address { font-style: normal; font-size: 18px; }
.visit .card dl { margin: 20px 0 0; font-size: 14px; }
.visit .card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.visit .card dt { color: color-mix(in srgb, var(--paper-ink) 70%, transparent); }
.visit .card dd { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.visit .card dd a { text-decoration: none; }
.visit .card dd a:hover { color: var(--accent-strong, var(--accent)); text-decoration: underline; }
.visit .card form { margin-top: 22px; display: grid; gap: 10px; }
.visit .card label { font-size: 14px; display: grid; gap: 6px; }
.visit .card input, .visit .card select { font: 400 18px/1.3 var(--sans); padding: 12px; border: 1px solid color-mix(in srgb, var(--paper-ink) 25%, transparent); background: #fff; color: var(--paper-ink); border-radius: 0; width: 100%; }
.visit .card .btn { width: calc(100% + 64px); margin: 24px -32px 0; min-height: 56px; }

.visit.framed { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; min-height: 0; padding: clamp(90px, 10vw, 150px) var(--m); }
.visit.framed > img { position: static; justify-self: end; width: min(100%, 560px); height: auto; aspect-ratio: 4 / 5; }
.visit.framed .wrapc { padding: 0; margin: 0; }
.visit.framed .card { position: static; margin: 0; }

/* Footer: columns above, wordmark below */
.foot { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 40px var(--m) 84px; background: var(--ink); color: var(--bg); }
.foot .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 18px; }
.foot .cols li:first-child { font-weight: 600; }
.foot .cols li + li { color: color-mix(in srgb, var(--bg) 66%, transparent); margin-top: 4px; }
.foot .cols a { text-decoration: none; }
.foot .cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .mark { grid-row: 3; transform-origin: 50% 100%; }
.foot .legal { grid-row: 4; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; color: color-mix(in srgb, var(--bg) 55%, transparent); margin-top: 20px; }

/* Switch between practices: the other side's colours, its picture at its own shape */
.switch a { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; padding: clamp(70px, 8vw, 120px) var(--m); background: var(--bg); color: var(--ink); text-decoration: none; overflow: hidden; }
.switch .fr { display: block; overflow: hidden; }
.switch img { height: min(62svh, 640px); width: auto; transition: transform 1.4s var(--ease); }
.switch a:hover img { transform: scale(1.04); }
.switch .sw .head { font-size: var(--t-head); }
.switch .sw p { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.switch .sw svg { width: 18px; transition: transform .4s var(--ease); }
.switch a:hover .sw svg { transform: translateX(6px); }


/* Always-there switch between the two sides */
.sides { position: fixed; z-index: 30; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--ink); color: var(--bg); font: 600 14px/1 var(--sans); }
.sides::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--accent); transform: translateX(var(--x, 0%)); transition: transform .45s var(--ease); }
.sides[data-on="re"] { --x: 100%; }
.sides.flip { --x: 0%; }
.sides[data-on="law"].flip { --x: 100%; }
.sides a { position: relative; display: grid; place-items: center; min-height: 44px; padding: 0 22px; text-decoration: none; white-space: nowrap; transition: color .3s; }
.sides a[aria-current] { color: var(--on-accent); }
.sides.flip a[aria-current] { color: inherit; }
.sides.flip a:not([aria-current]) { color: var(--on-accent); }
.sides a:not([aria-current]):hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .hero { grid-template-rows: 50svh auto 1fr; }
  .hero .name { order: 2; align-self: start; padding-top: 22px; padding-bottom: 0; }
  .hero .strip { order: 3; padding-bottom: 36px; }
  .lead { font-size: 22px; }
  .hero .strip { grid-template-columns: 1fr; gap: 18px; padding-top: 22px; }
  .hero .strip .btn { justify-self: start; }
  .hero .name { padding-top: 28px; padding-bottom: 16px; }
  .hero .name .ln { display: block; }
  .bar nav a:not(.keep) { display: none; }
  .dist .stage { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto auto auto 1fr; }
  .dist .stage { grid-template-columns: 1fr min(64vw, 42svh) 1fr; }
  .dist .top, .dist .bot { font-size: 12vw; }
  .dist .frame { grid-column: 2; width: 100%; max-height: none; }
  .dist .cap { grid-column: 1 / -1; grid-row: 5; margin: 18px auto 0; text-align: center; font-size: 16px; max-width: 34ch; padding: 0 var(--m); }
  .sheetband { grid-template-columns: 1fr; padding: 70px 10px; }
  .sheetband .bgs { display: none; }
  .sheet { grid-column: 1; padding: 44px 20px; max-width: none; }
  .sheet .it { grid-template-columns: 64px 1fr auto; gap: 4px 14px; }
  .sheet .it .th { display: block; grid-row: 1 / 3; width: 64px; height: 80px; object-fit: cover; }
  .sheet .it .ds { grid-column: 2 / -1; }
  .sheet .grp h3 { font-size: 22px; }
  .verbs .steps { grid-template-columns: 1fr; gap: 64px; }
  .verbs .steps li:nth-child(even) { margin-top: 0; }
  .verbs .verb { font-size: 19vw; }
  .verbs .say { font-size: 22px; }
  .about .tiles { grid-template-columns: 1fr; }
  .about .wide, .about .side { grid-column: 1; }
  .about .wide { grid-template-columns: 1fr; }
  .about .wide p { padding: 4px 0 8px; }
  .about .tile { aspect-ratio: 3 / 2; margin-top: 16px; }
  .visit { min-height: 0; padding-bottom: 16px; }
  .visit > img { position: relative; height: 70svh; }
  .visit .wrapc { padding: 0; margin-top: -80px; }
  .visit .card { position: relative; top: 0; margin: 0 16px; width: auto; }
  .visit .card .btn { min-height: 56px; }
  .foot .cols { grid-template-columns: 1fr 1fr; gap: 32px 18px; font-size: 14px; }
  .foot .mark .ln { display: block; }
  .switch a { grid-template-columns: 1fr; padding: 64px var(--m); }
  .switch .fr { order: -1; }
  .switch img { width: 100%; height: auto; }
  .visit.framed { grid-template-columns: 1fr; padding: 64px 16px; }
  .visit.framed > img { justify-self: stretch; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .hero .photo img { transform: none; }
  .dist .bot, .dist .cap { opacity: 1; transform: none; }
}

/* Page to page (Sink Back + Soft Rise): the page you leave sinks back into the ink, the next one rises in.
   Every page carries this rule, because a cross-page transition only runs when both pages opt in.
   Chrome, Edge and Safari 18.2+; other browsers keep the plain load. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition { background: #151e1b; }
  ::view-transition-old(root) { animation: vt-sink .34s cubic-bezier(.4, 0, 1, 1) both; transform-origin: 50% 45%; }
  ::view-transition-new(root) { animation: vt-rise .56s cubic-bezier(.2, .8, .3, 1) .3s both; }
}
@keyframes vt-sink { 45% { opacity: 1; } to { transform: scale(.86) translateY(10px); opacity: 0; border-radius: 28px; } }
@keyframes vt-rise { from { transform: translateY(16px) scale(.985); opacity: 0; } }
