/* ----------------------------------------------------------------------------
 * Woodward Commercial Realty — industrial editorial
 * --------------------------------------------------------------------------*/

:root {
  --primary: #ee3b33;
  --primary-ink: #c92a23;
  --accent:  #1a2238;
  --neutral: #f5f0e8;
  --neutral-2: #ebe4d6;
  --dark: #111111;
  --muted: #5a5a5a;
  --rule: rgba(17, 17, 17, 0.14);
  --rule-strong: rgba(17, 17, 17, 0.32);

  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --body:    "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 10vw, 140px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--neutral);
  color: var(--dark);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

::selection { background: var(--primary); color: #fff; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--dark); color: #fff; padding: 8px 12px;
  font-family: var(--mono); font-size: 12px;
}
.skip:focus { left: 12px; top: 12px; z-index: 100; }

/* ---- Top bar ------------------------------------------------------------ */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--neutral);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(120%);
}
.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}
.brand img { height: 36px; width: auto; }

.nav {
  justify-self: center;
  display: flex; gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav a {
  position: relative; padding: 6px 2px;
  color: var(--dark);
  transition: color .25s ease;
}
.nav a:hover { color: var(--primary); }
.nav__num {
  color: var(--primary);
  margin-right: 6px;
}

.topbar__phone {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--dark);
  background: var(--dark);
  color: #fff;
  transition: background .25s, color .25s;
}
.topbar__phone:hover { background: var(--primary); border-color: var(--primary); }
.topbar__phone-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--primary);
}
.topbar__phone:hover .topbar__phone-label { color: #fff; }

@media (max-width: 880px) {
  .nav { display: none; }
  .topbar__inner { grid-template-columns: auto 1fr; }
}

/* ---- Section heads ------------------------------------------------------ */

.sec-head {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin-bottom: 56px;
}
.sec-head__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--primary);
  text-transform: uppercase;
}
.sec-head__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.sec-head__lede {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 56ch;
}
.sec-head--center {
  text-align: center;
  justify-items: center;
  margin-inline: auto;
}
.sec-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
}
.sec-head__lede--right { justify-self: end; text-align: right; }

@media (max-width: 760px) {
  .sec-head--split { grid-template-columns: 1fr; }
  .sec-head__lede--right { justify-self: start; text-align: left; }
}

/* ---- Kicker / shared bits ---------------------------------------------- */

.kicker {
  margin: 0 0 28px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker__dash {
  display: inline-block;
  width: 36px; height: 2px;
  background: var(--primary);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  cursor: pointer;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn--ghost {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--ghost:hover {
  background: var(--accent);
  color: var(--neutral);
}

/* ---- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(36px, 6vw, 72px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 30%, transparent 75%);
  opacity: .55;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: end;
}
.hero__copy { position: relative; z-index: 2; }

.hero__headline {
  font-family: var(--display);
  margin: 0 0 28px;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--accent);
}
.hero__headline em {
  font-style: normal;
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}
.hero__headline em::after {
  content: "";
  position: absolute;
  left: 0; right: 6%;
  bottom: -.06em;
  height: 6px;
  background: var(--primary);
  opacity: .18;
}

.hero__sub {
  margin: 0 0 36px;
  max-width: 46ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: #2d2f38;
}

.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 56px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--rule-strong);
}
.hero__meta > div {
  padding: 18px 0;
  border-right: 1px solid var(--rule);
}
.hero__meta > div:last-child { border-right: 0; padding-left: 0; }
.hero__meta > div + div { padding-left: 18px; }
.hero__meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.hero__meta dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}

.hero__image {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--accent);
}
.hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.92);
  animation: heroImg 14s ease-in-out infinite alternate;
}
@keyframes heroImg {
  from { transform: scale(1.02); }
  to   { transform: scale(1.08); }
}
.hero__image figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: baseline;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.figcaption__num { color: var(--primary); font-weight: 500; }

.hero__rail {
  position: absolute;
  left: var(--gutter);
  bottom: 24px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 1;
}
.hero__rail-line { width: 80px; height: 1px; background: var(--rule-strong); }

.redbar {
  height: 6px;
  background: var(--primary);
  margin-top: clamp(48px, 6vw, 80px);
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__image { aspect-ratio: 4 / 3; order: -1; }
  .hero__rail { display: none; }
  .hero__meta > div { padding: 14px 0; }
  .hero__meta > div + div { padding-left: 14px; }
}

/* ---- Services ledger ---------------------------------------------------- */

.services {
  padding-block: var(--section-y);
  border-top: 1px solid var(--rule);
}

.ledger {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--dark);
  border-bottom: 1px solid var(--dark);
}
.ledger__row {
  position: relative;
  padding: 36px 28px 28px;
  border-right: 1px solid var(--rule);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
  min-height: 360px;
  background: transparent;
  transition: background .35s ease;
}
.ledger__row:last-child { border-right: 0; }
.ledger__row:hover { background: var(--neutral-2); }

.ledger__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--primary);
}
.ledger__num::before {
  content: "";
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--primary);
  vertical-align: middle;
  margin-right: 8px;
  transform: translateY(-2px);
}
.ledger__label {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--accent);
  margin: 0;
}
.ledger__body {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}
.ledger__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  border: 1px solid var(--rule-strong);
  padding: 4px 8px;
  width: max-content;
}

@media (max-width: 980px) {
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger__row { border-bottom: 1px solid var(--rule); min-height: 280px; }
  .ledger__row:nth-child(2) { border-right: 0; }
  .ledger__row:nth-child(3) { border-right: 1px solid var(--rule); }
  .ledger__row:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger__row {
    border-right: 0 !important;
    border-bottom: 1px solid var(--rule);
    min-height: 0;
  }
  .ledger__row:last-child { border-bottom: 0; }
}

/* ---- Stats -------------------------------------------------------------- */

.stats {
  background: var(--accent);
  color: var(--neutral);
  padding-block: var(--section-y);
  position: relative;
}
.stats::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--primary);
}
.stats .sec-head__title { color: var(--neutral); }
.stats .sec-head__num { color: var(--primary); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(245, 240, 232, 0.18);
  border-bottom: 1px solid rgba(245, 240, 232, 0.18);
}
.stat {
  position: relative;
  padding: 56px 28px 48px;
  text-align: center;
  border-right: 1px solid rgba(245, 240, 232, 0.18);
  display: grid;
  gap: 8px;
  justify-items: center;
}
.stat:last-child { border-right: 0; }
.stat__tick {
  color: var(--primary);
  font-size: 10px;
  letter-spacing: 0.2em;
}
.stat__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--neutral);
}
.stat__num sup {
  font-size: 0.45em;
  vertical-align: super;
  color: var(--primary);
  font-weight: 700;
  margin-left: 2px;
}
.stat__unit {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--primary);
}
.stat__label {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: 14px;
  color: rgba(245, 240, 232, 0.78);
  max-width: 22ch;
}

@media (max-width: 760px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(245, 240, 232, 0.18); padding: 40px 20px; }
  .stat:last-child { border-bottom: 0; }
}

/* ---- Properties mosaic -------------------------------------------------- */

.properties {
  padding-block: var(--section-y);
}

.mosaic {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}

.tile {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  isolation: isolate;
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.tile:hover img { transform: scale(1.06); }

.tile__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.78) 100%);
  pointer-events: none;
}

.tile__caption {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  color: var(--neutral);
  display: grid;
  gap: 4px;
}
.tile__id {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--primary);
  margin-bottom: 4px;
}
.tile__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.tile__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(245, 240, 232, 0.84);
}

/* explicit cell sizes for the editorial mosaic */
.tile--xl { grid-column: span 4; grid-row: span 3; }
.tile--md { grid-column: span 2; grid-row: span 3; }

.mosaic > .tile:nth-child(1) { grid-column: 1 / span 4; grid-row: 1 / span 3; }
.mosaic > .tile:nth-child(2) { grid-column: 5 / span 2; grid-row: 1 / span 2; }
.mosaic > .tile:nth-child(3) { grid-column: 5 / span 2; grid-row: 3 / span 2; }
.mosaic > .tile:nth-child(4) { grid-column: 1 / span 2; grid-row: 4 / span 2; }
.mosaic > .tile:nth-child(5) { grid-column: 3 / span 2; grid-row: 4 / span 2; }
.mosaic > .tile:nth-child(6) { grid-column: 5 / span 2; grid-row: 5 / span 1; }

@media (max-width: 980px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; }
  .mosaic > .tile:nth-child(1) { grid-column: 1 / span 4; grid-row: span 2; }
  .mosaic > .tile:nth-child(2) { grid-column: 1 / span 2; grid-row: span 2; }
  .mosaic > .tile:nth-child(3) { grid-column: 3 / span 2; grid-row: span 2; }
  .mosaic > .tile:nth-child(4) { grid-column: 1 / span 2; grid-row: span 2; }
  .mosaic > .tile:nth-child(5) { grid-column: 3 / span 2; grid-row: span 2; }
  .mosaic > .tile:nth-child(6) { grid-column: 1 / span 4; grid-row: span 2; }
}
@media (max-width: 560px) {
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .mosaic > .tile { grid-column: 1 !important; grid-row: span 1 !important; }
}

.properties__note {
  margin: 36px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: flex; gap: 10px; align-items: baseline;
}
.properties__note span { color: var(--primary); }
.properties__note a {
  color: var(--accent);
  border-bottom: 1px solid var(--primary);
}

/* ---- Contact ------------------------------------------------------------ */

.contact {
  padding-block: var(--section-y);
  background: var(--neutral-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.contact::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  width: 25%; height: 6px;
  background: var(--primary);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.contact__title {
  margin: 12px 0 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--accent);
}
.contact__sub {
  margin: 0;
  color: var(--muted);
  max-width: 38ch;
}

.contact__bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  border: 1px solid var(--dark);
  background: var(--dark);
  color: var(--neutral);
}
.contact__cell, .contact__phone {
  padding: 22px 22px;
  display: grid;
  gap: 8px;
  border-right: 1px solid rgba(245, 240, 232, 0.16);
  align-content: center;
}
.contact__cell:last-child, .contact__phone:last-child { border-right: 0; }
.contact__phone { transition: background .25s; }
.contact__phone:hover { background: var(--primary); }

.contact__key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--primary);
  text-transform: uppercase;
}
.contact__phone:hover .contact__key { color: #fff; }
.contact__val {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: -0.005em;
}
.contact__cell--social .contact__val {
  display: inline-flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.contact__cell--social a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--neutral);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.contact__cell--social a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.contact__cell--social .dot { color: var(--primary); }

@media (max-width: 980px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__bar { grid-template-columns: 1fr; }
  .contact__cell, .contact__phone {
    border-right: 0;
    border-bottom: 1px solid rgba(245, 240, 232, 0.16);
  }
  .contact__cell:last-child { border-bottom: 0; }
}

/* ---- Footer ------------------------------------------------------------- */

.foot {
  padding-block: 28px 36px;
  background: var(--neutral);
}
.foot__inner {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.foot__credit { opacity: .8; }

/* ---- Reveal motion ------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    opacity: 0;
    transform: translateY(14px);
    animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .hero__copy > *:nth-child(1) { animation-delay: .05s; }
  .hero__copy > *:nth-child(2) { animation-delay: .15s; }
  .hero__copy > *:nth-child(3) { animation-delay: .25s; }
  .hero__copy > *:nth-child(4) { animation-delay: .35s; }
  .hero__copy > *:nth-child(5) { animation-delay: .45s; }
  .hero__image { opacity: 0; animation: rise 1s cubic-bezier(.2,.7,.2,1) .2s forwards; }
  .redbar { transform-origin: left; transform: scaleX(0); animation: scaleX 1.1s cubic-bezier(.2,.7,.2,1) .6s forwards; }

  @keyframes rise   { to { opacity: 1; transform: translateY(0); } }
  @keyframes scaleX { to { transform: scaleX(1); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}
