/* ELITE SQUARE PTY LTD — elitesquare.com.au
   Quiet editorial site. Plain CSS, no build step. */

:root {
  /* Brand */
  --orange: #FF5B1F;
  --orange-ink: #C7390A;       /* darker orange for AA on bone if needed */
  --ink: #0E0E10;
  --bone: #F4F1EA;
  --bone-2: #EAE6DC;

  /* Derived */
  --ink-80: rgba(14, 14, 16, 0.80);
  --ink-65: rgba(14, 14, 16, 0.65);
  --ink-45: rgba(14, 14, 16, 0.45);
  --rule:   rgba(14, 14, 16, 0.14);
  --rule-2: rgba(14, 14, 16, 0.08);

  /* Type */
  --font-head: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --max-w: 1180px;
  --pad-x: clamp(22px, 5vw, 56px);
  --section-y: clamp(72px, 11vw, 132px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--orange); color: var(--bone); }

/* ---------- Focus ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-65);
  margin: 0 0 18px;
  display: inline-block;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--orange);
  margin-right: 10px;
  vertical-align: 1.5px;
}

/* Prose links inside body copy */
.prose a {
  border-bottom: 1px solid var(--rule);
  transition: border-color .15s ease, color .15s ease;
}
.prose a:hover { border-bottom-color: var(--orange); color: var(--orange-ink); }

/* ---------- Wordmark / brand mark ---------- */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 15px;
  color: var(--ink);
}
.mark__sq {
  width: 12px; height: 12px;
  background: var(--orange);
  display: inline-block;
}

/* ---------- Layout primitives ---------- */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklab, var(--bone) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule-2);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
}
.nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-65);
}
.nav a {
  position: relative;
  padding-block: 4px;
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
}
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--orange);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(72px, 12vw, 140px);
  padding-bottom: clamp(72px, 12vw, 140px);
}
.hero__display {
  font-size: clamp(56px, 11.5vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 14px 0 36px;
}
.hero__display .ampsq {
  color: var(--orange);
}
.hero__sub {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink-80);
  max-width: 22ch;
  margin-bottom: 44px;
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  padding-top: clamp(64px, 10vw, 110px);
  padding-bottom: clamp(56px, 8vw, 90px);
}
.page-hero h1 {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 12px 0 28px;
  max-width: 16ch;
}
.page-hero__lede {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.45;
  color: var(--ink-80);
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--bone);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  color: var(--fg);
  padding: 16px 22px 16px 24px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  border: 0;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--orange); color: var(--bone); }
.btn:active { transform: translateY(1px); }
.btn .arrow {
  display: inline-block;
  width: 18px; height: 12px;
  position: relative;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border: 1px solid var(--ink);
  padding: 15px 21px 15px 23px;
}
.btn--ghost:hover { background: var(--ink); color: var(--bone); }
.btn--mail {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0;
  padding: 22px 28px;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section-y);
}
.section--tight { padding-block: clamp(56px, 8vw, 96px); }
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
@media (min-width: 760px) {
  .section__head {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }
}
.section__title {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.section__lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--ink-80);
  max-width: 56ch;
  margin-top: 18px;
}

/* ---------- Value cards (3-col on home) ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--bone);
  padding: 40px 32px 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}
.card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--orange-ink);
  text-transform: uppercase;
}
.card__h {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-top: 6px;
}
.card__p {
  color: var(--ink-80);
  font-size: 15.5px;
  line-height: 1.55;
}

/* ---------- "What we make" promo block ---------- */
.promo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 36px;
  background: var(--bone-2);
  align-items: end;
}
@media (min-width: 880px) {
  .promo {
    grid-template-columns: 1fr auto;
    padding: 72px 56px;
    gap: 56px;
  }
}
.promo__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-65);
  margin-bottom: 18px;
}
.promo__title {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 16ch;
}
.promo__title .accent { color: var(--orange); }
.promo__sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-80);
  max-width: 44ch;
  margin-top: 22px;
}

/* ---------- Product block ---------- */
.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .product { grid-template-columns: 280px minmax(0, 1fr); gap: 64px; }
}
.product__meta {
  position: sticky;
  top: 96px;
  align-self: start;
}
.product__name {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 14px 0 14px;
}
.product__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-65);
}
.product__platforms {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-65);
  line-height: 1.9;
}
.product__platforms a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.product__platforms a:hover { border-bottom-color: var(--orange); color: var(--orange-ink); }

.product__body p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-80);
  max-width: 60ch;
  margin-bottom: 18px;
}
.product__body p:first-child {
  font-size: 22px;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 28px;
}

/* Feature list */
.features {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; }
}
.features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 4px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
}
.features li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--orange);
  margin-top: 9px;
  flex: 0 0 6px;
}

/* Coming soon */
.coming {
  margin-top: 32px;
  padding: 44px 36px;
  border: 1px dashed var(--rule);
  background: transparent;
}
.coming__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 14px;
}
.coming__text {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.015em;
  color: var(--ink-80);
  max-width: 48ch;
  line-height: 1.3;
}

/* ---------- Principles ---------- */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 760px) {
  .principles { grid-template-columns: 1fr 1fr; }
}
.principle {
  padding: 36px 32px 36px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  align-items: start;
}
@media (min-width: 760px) {
  .principle:nth-child(odd)  { padding-right: 48px; border-right: 1px solid var(--rule); }
  .principle:nth-child(even) { padding-left: 48px; }
}
.principle__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--orange-ink);
  padding-top: 6px;
}
.principle__h {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.principle__p {
  color: var(--ink-80);
  font-size: 16px;
  line-height: 1.55;
  max-width: 50ch;
}

/* ---------- Entity card ---------- */
.entity {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--bone);
}
@media (min-width: 760px) {
  .entity { grid-template-columns: 220px minmax(0, 1fr); }
}
.entity__head {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 760px) {
  .entity__head {
    border-bottom: 0;
    border-right: 1px solid var(--rule);
    padding: 32px 28px;
  }
}
.entity__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-65);
}
.entity__body {
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 2.0;
  color: var(--ink);
}
.entity__body dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  row-gap: 6px;
  column-gap: 24px;
}
.entity__body dt { color: var(--ink-65); }
.entity__body dd { margin: 0; color: var(--ink); }
.entity__body a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.entity__body a:hover { border-bottom-color: var(--orange); color: var(--orange-ink); }

/* ---------- Contact CTA ---------- */
.contact-cta {
  text-align: center;
  padding: clamp(60px, 9vw, 110px) 0;
}
.contact-cta__display {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.contact-cta__display a {
  color: var(--ink);
  border-bottom: 2px solid var(--rule);
  transition: border-color .15s ease, color .15s ease;
}
.contact-cta__display a:hover {
  color: var(--orange-ink);
  border-bottom-color: var(--orange);
}
.contact-cta__sub {
  font-size: 18px;
  color: var(--ink-80);
  max-width: 50ch;
  margin: 24px auto 36px;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bone);
  border-top: 1px solid var(--rule);
  padding-block: 56px 40px;
  margin-top: clamp(40px, 6vw, 80px);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 48px;
  }
}
.site-footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-65);
  font-weight: 400;
  margin: 0 0 16px;
}
.site-footer__tag {
  margin-top: 12px;
  color: var(--ink-65);
  font-size: 14.5px;
  max-width: 28ch;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-nav a {
  color: var(--ink);
  display: inline-block;
  width: max-content;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.footer-nav a:hover { border-bottom-color: var(--orange); color: var(--orange-ink); }
.footer-legal {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 2.0;
  color: var(--ink);
  white-space: nowrap;
}
.footer-legal .muted { color: var(--ink-65); }
.footer-legal a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.footer-legal a:hover { border-bottom-color: var(--orange); color: var(--orange-ink); }

.site-footer__base {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-45);
  text-transform: uppercase;
}

/* ---------- Small utilities ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--ink);
  color: var(--bone);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  z-index: 100;
}
.skip-link:focus { left: 12px; }

.spacer-lg { height: clamp(40px, 6vw, 80px); }
