:root {
  --ink: #11110f;
  --paper: #eee9df;
  --line: rgba(238, 233, 223, 0.38);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--ink); }

body {
  color: var(--paper);
  font-family: var(--mono);
  overflow: hidden;
}

a { color: inherit; }

.site-arrival {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: #11110f;
  pointer-events: none;
  animation: arrival-fallback 3s ease forwards;
}

.site-arrival img {
  display: block;
  width: min(310px, 58vw);
  height: auto;
  opacity: 0;
  animation: logo-fallback 3s ease forwards;
}

@keyframes arrival-fallback {
  0%, 74% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes logo-fallback {
  0%, 12% { opacity: 0; transform: translateY(10px); }
  32%, 62% { opacity: 1; transform: translateY(0); }
  80%, 100% { opacity: 0; transform: translateY(-8px); }
}

.sector-gateway {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #11110f;
}

.gateway-header,
.gateway-footer {
  position: absolute;
  z-index: 8;
  left: clamp(18px, 2.4vw, 44px);
  right: clamp(18px, 2.4vw, 44px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
  pointer-events: none;
}

.gateway-header { top: 24px; }
.gateway-footer { bottom: 12px; color: rgba(238, 233, 223, 0.68); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.brand-logo { display: block; width: auto; height: 27px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy span:first-child { font-weight: 500; font-size: 12px; line-height: 1.1; }
.brand-copy span:last-child { color: rgba(238, 233, 223, 0.65); line-height: 1.2; }

.gateway-index { color: rgba(238, 233, 223, 0.66); }

.gateway-copy {
  position: absolute;
  z-index: 7;
  top: clamp(94px, 13vh, 150px);
  left: clamp(18px, 2.4vw, 44px);
  pointer-events: none;
}

.eyebrow,
.intro {
  margin: 0;
  text-transform: uppercase;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.13em;
}

.eyebrow { margin-bottom: 14px; color: rgba(238, 233, 223, 0.62); }

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 9.2vw, 174px);
  line-height: 0.75;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 290px;
  margin-top: 24px;
  color: rgba(238, 233, 223, 0.72);
}

.sector-options {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
}

.sector-card {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  overflow: hidden;
  color: var(--paper);
  text-decoration: none;
  border-left: 1px solid var(--line);
  transition: flex-grow 900ms cubic-bezier(.2,.75,.2,1);
}

.sector-card:first-child { border-left: 0; }
.sector-options:has(.sector-card:hover) .sector-card { flex-grow: 0.82; }
.sector-options:has(.sector-card:hover) .sector-card:hover { flex-grow: 1.18; }

.sector-image,
.sector-shade {
  position: absolute;
  inset: 0;
}

.sector-image {
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.48);
  transform: scale(1.04);
  transition: transform 1200ms cubic-bezier(.2,.75,.2,1), filter 800ms ease;
}

.sector-card--residential .sector-image {
  background-image: url('public/images/residential/floralynn/IMG_0899.jpg');
  background-position: 52% center;
}

.sector-card--commercial .sector-image {
  background-image: url('public/images/commercial/12.webp');
  background-position: 50% center;
}

.sector-shade {
  background: linear-gradient(180deg, rgba(10,10,9,.58) 0%, rgba(10,10,9,.13) 48%, rgba(10,10,9,.78) 100%);
  transition: background 800ms ease;
}

.sector-card:hover .sector-image,
.sector-card:focus-visible .sector-image {
  transform: scale(1);
  filter: grayscale(0) brightness(0.72);
}

.sector-card:hover .sector-shade,
.sector-card:focus-visible .sector-shade {
  background: linear-gradient(180deg, rgba(10,10,9,.42), rgba(10,10,9,.02) 52%, rgba(10,10,9,.68));
}

.sector-number,
.sector-content,
.sector-arrow {
  position: absolute;
  z-index: 2;
}

.sector-number {
  top: 25px;
  left: 24px;
  font-size: 10px;
  letter-spacing: .12em;
  opacity: .62;
}

/* The residential card shares the upper-left corner with the site mark. */
@media (min-width: 761px) {
  .sector-card--residential .sector-number {
    right: 24px;
    left: auto;
  }
}

.sector-content {
  left: clamp(20px, 3.2vw, 62px);
  bottom: clamp(62px, 8vh, 106px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(560px, 78%);
}

.sector-kicker,
.sector-note {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
  line-height: 1.45;
}

.sector-kicker { margin-bottom: 10px; opacity: .68; }

.sector-content strong {
  font-family: var(--serif);
  font-size: clamp(54px, 6.5vw, 126px);
  line-height: .88;
  font-weight: 400;
  letter-spacing: -.045em;
}

.sector-note {
  max-width: 330px;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 700ms cubic-bezier(.2,.75,.2,1);
}

.sector-card:hover .sector-note,
.sector-card:focus-visible .sector-note { opacity: .78; transform: translateY(0); }

.sector-arrow {
  right: 24px;
  bottom: 70px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(238,233,223,.54);
  font-size: 17px;
  transition: background 300ms ease, color 300ms ease, transform 500ms cubic-bezier(.2,.75,.2,1);
}

.sector-card:hover .sector-arrow,
.sector-card:focus-visible .sector-arrow {
  color: #11110f;
  background: var(--paper);
  transform: translate(3px, -3px);
}

.sector-card:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }

.page-wipe {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  transform: translateY(100%);
  background: #11110f;
}

.branch-announcement {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(14px, 2vh, 26px);
  padding: 24px;
  color: var(--paper);
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
}

.branch-announcement-kicker,
.branch-announcement-note {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.branch-announcement-kicker { color: rgba(238, 233, 223, .56); }
.branch-announcement-note { color: rgba(238, 233, 223, .72); }

.branch-announcement strong {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 13vw, 214px);
  line-height: .78;
  letter-spacing: -.065em;
}

.branch-announcement strong span { display: block; }
.branch-announcement strong span:first-child { font-size: .667em !important; }

.page-wipe-line {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 4vh, 56px);
  width: 1px;
  height: clamp(44px, 9vh, 108px);
  background: rgba(238, 233, 223, .48);
  transform: translateX(-50%);
}

@media (max-width: 760px) {
  body { overflow: hidden; }
  .sector-gateway { height: 100svh; min-height: 0; }
  .gateway-header { top: 18px; }
  .gateway-copy { top: 96px; left: 20px; right: 20px; }
  h1 { font-size: clamp(54px, 16vw, 72px); }
  .intro { display: none; }
  .sector-options { inset: 0; display: grid; grid-template-rows: 1fr 1fr; }
  .sector-card { min-height: 0; border-left: 0; border-top: 1px solid var(--line); }
  .sector-card:first-child { border-top: 0; }
  .sector-options:has(.sector-card:hover) .sector-card,
  .sector-options:has(.sector-card:hover) .sector-card:hover { flex-grow: 1; }
  .sector-card--residential .sector-number { top: 64px; right: 18px; left: auto; }
  .sector-content { left: 20px; bottom: 22px; max-width: 72%; }
  .sector-content strong { font-size: clamp(46px, 14vw, 64px); }
  .sector-note { display: none; }
  .sector-arrow { right: 18px; bottom: 22px; }
  .gateway-footer { display: none; }
  .branch-announcement strong { font-size: clamp(60px, 18vw, 112px); }
}

@media (min-width: 761px) and (max-height: 680px) {
  .gateway-copy { top: clamp(68px, 12vh, 98px); }
  h1 { font-size: clamp(56px, 8vw, 104px); }
  .intro { margin-top: 16px; }
  .sector-content { bottom: clamp(34px, 8vh, 60px); }
  .sector-arrow { bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
