/* The Milar Group — site styles. */

:root {
  --bg:    #101010;
  --fg:    #f2f2f0;
  --body:  #d6d6d2;
  --muted: #9b9b98;
  --faint: #7d7d7a;
  --rule:  #2a2a2a;
  
  --tgg:   #ffa300;
  --pad:   24px;
  --font:  Helvetica, "Helvetica Neue", Arial, sans-serif;
  --ease:  cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px;
  padding: 10px 16px; background: var(--fg); color: var(--bg);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.skip:focus { left: 12px; top: 12px; z-index: 30; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity   .8s var(--ease),
    transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── Nav ───────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px var(--pad);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-stuck {
  background: rgba(16, 16, 16, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
}

.nav__mark {
  color: var(--fg);
  font-size: 15px; font-weight: 700;
  letter-spacing: -.02em; text-transform: none;
  line-height: 1;
}
.nav__links { display: flex; gap: 22px; }
.nav__links a { transition: color .3s var(--ease); }
.nav__links a:hover { color: var(--fg); }

/* ── Hero ──────────────────────────────────────────── */

.hero { position: relative; height: clamp(340px, 78vh, 680px); overflow: hidden; }

.hero__figure { position: absolute; inset: -8% 0; will-change: transform; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.25) brightness(.72);
  transform: scale(1.08);
  opacity: 0;
  animation: heroIn 1.9s var(--ease) .1s forwards;
}
@keyframes heroIn { to { opacity: 1; transform: scale(1); } }

.hero__wordmark {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 0 18px 6px;
  pointer-events: none;
  overflow: hidden;
}
.hero__wordmark span {
  display: block;
  
  font-size: clamp(72px, 14.2vw, 190px);
  font-weight: 700; letter-spacing: -.06em; line-height: .8;
  
  color: rgba(242, 242, 240, .75);
  transform: translateY(105%);
  animation: markIn 1.4s var(--ease) .45s forwards;
}
@keyframes markIn { to { transform: translateY(0); } }

/* ── Section furniture ─────────────────────────────── */

.band { border-top: 1px solid var(--rule); }

.label {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}

.cell { padding: 36px var(--pad); }

.grid3 {
  display: grid;
  
  grid-template-columns: 1.2fr minmax(280px, .7fr) 1.1fr;
  
  column-gap: 28px;
}

.lede { font-size: 15px; line-height: 1.6; color: var(--body); }
.lede + .lede { margin-top: 18px; }

.grid3 .lede { max-width: 60ch; }

.facts { display: flex; flex-direction: column; gap: 16px; max-width: 290px; }
.facts > div {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.facts > div > span:last-child { color: var(--fg); text-align: right; }
.facts a { color: inherit; transition: color .3s var(--ease); }
.facts a:hover { color: var(--tgg); }

.focus { display: flex; flex-direction: column; gap: 12px; }
.focus ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.focus li { font-size: 14px; color: var(--body); }

/* ── Portfolio ─────────────────────────────────────── */

.section { padding: 44px var(--pad) 48px; }
.section__head { margin-bottom: 28px; }

.group + .group { margin-top: 36px; }
.group__label { margin-bottom: 14px; }

.assets { list-style: none; }
.assets li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.assets li:last-child { border-bottom: 1px solid var(--rule); }
.asset__addr { font-size: 17px; color: var(--fg); }
.asset__meta {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}

/* ── Contact + leadership ──────────────────────────── */

.people { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 700px; }

.people > * + * { padding-left: var(--pad); }
.people > * { padding-right: var(--pad); }

.person__photo {
  display: block; width: 100%; max-width: 260px;
  aspect-ratio: 4 / 5; object-fit: cover;
  margin-bottom: 20px;
  filter: grayscale(1) contrast(1.02);
  background: var(--rule);
}

.invite { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--rule); }
.invite__note { font-size: 14px; line-height: 1.6; color: var(--muted); }
.invite__tel { margin-top: 6px; font-size: 21px; color: var(--fg); }

.person__name { font-size: 17px; color: var(--fg); }
.person__bio { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--body); max-width: 46ch; }

.person__email { margin-top: 14px; font-size: 14px; color: var(--muted); }
.person__email a { transition: color .3s var(--ease); }
.person__email a:hover { color: var(--fg); }

.subpage { min-height: 100vh; display: flex; flex-direction: column; }

.subpage main > .band:first-child { border-top: 0; }
.subpage main { flex: 1 0 auto; padding-top: 48px; }
.subpage .footer { flex-shrink: 0; }

.contact-page { display: grid; grid-template-columns: 1fr 1fr; }
.contact-page > * + * { border-left: 1px solid var(--rule); }

.note { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.note p {
  margin-top: 14px; max-width: 44ch;
  font-size: 13px; line-height: 1.65; color: var(--muted);
}

.legal { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0; }
.legal__rail { padding-right: 28px; }
.legal__rail a {
  display: block; padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); transition: color .3s var(--ease);
}
.legal__rail a:last-child { border-bottom: 1px solid var(--rule); }
.legal__rail a:hover { color: var(--fg); text-decoration: none; }
.legal__rail a[aria-current="page"] { color: var(--fg); }

.doc { max-width: 62ch; padding-left: 28px; border-left: 1px solid var(--rule); }
.doc__title {
  font-size: clamp(28px, 3.4vw, 38px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.05; color: var(--fg);
}
.doc__updated {
  margin-top: 14px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.doc h2 {
  margin-top: 34px;
  font-size: 17px; font-weight: 400; letter-spacing: -.01em; color: var(--fg);
}
.doc p { margin-top: 12px; font-size: 14px; line-height: 1.75; color: var(--body); }
.doc > p:first-of-type { margin-top: 26px; }
.doc p a { text-decoration: underline; text-underline-offset: 3px; }

.footer__legal { display: flex; gap: 18px; }
.footer__legal a:hover { color: var(--fg); }

.form { display: flex; flex-direction: column; gap: 18px; max-width: 460px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.field input, .field textarea {
  padding: 11px 12px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--fg);
  font-family: var(--font); font-size: 14px;
  transition: border-color .35s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--muted); outline: none; }
.field textarea { resize: vertical; min-height: 110px; }

.form button {
  align-self: flex-start;
  padding: 12px 26px;
  background: var(--fg); color: var(--bg);
  
  border: 1px solid var(--fg);
  cursor: pointer;
  font-family: var(--font); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.form button:hover { background: var(--bg); color: var(--fg); }

.hp { position: absolute; left: -9999px; }

.detail { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
.detail__value { font-size: 17px; line-height: 1.45; color: var(--fg); }

/* ── Footer ────────────────────────────────────────── */

.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 14px var(--pad);
  border-top: 1px solid var(--rule);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint);
}

/* ── Narrow ────────────────────────────────────────── */

@media (max-width: 860px) {
  .grid3, .people, .contact-page, .legal { grid-template-columns: 1fr; }
  .legal__rail { padding-right: 0; margin-bottom: 32px; }
  .doc { padding-left: 0; border-left: 0; }
  
  .people > * + * { padding-left: 0; margin-top: 32px; }
  .people > * { padding-right: 0; }
  .grid3 > * + *, .contact-page > * + * {
    border-left: 0; border-top: 1px solid var(--rule);
  }
  
  .facts { max-width: none; }
}

@media (max-width: 560px) {
  :root { --pad: 18px; }
  
  .nav { position: absolute; }
  .nav.is-stuck {
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }
  .nav__links { gap: 16px; }
  .assets li { flex-direction: column; align-items: flex-start; gap: 6px; } 
}

/* ── Page transitions ──────────────────────────────── */

@view-transition { navigation: auto; }

::view-transition-old(root) { animation: pageOut 170ms cubic-bezier(.55, 0, 1, .45) both; }
::view-transition-new(root) { animation: pageIn  260ms var(--ease) both; }

@keyframes pageOut { to   { transform: translateY(-40px); opacity: 0; } }
@keyframes pageIn  { from { transform: translateY(40px);  opacity: 0; } }

.nav { view-transition-name: nav; }

/* ── Reduced motion ────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__img { opacity: 1; transform: none; animation: none; }
  .hero__wordmark span { transform: none; animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
