/* ==========================================================================
   AR SQUARED INC. — arsqd.com
   Design system: quiet power, modern heritage, editorial restraint.
   ========================================================================== */

:root {
  /* Color */
  --onyx: #0b0b0b;
  --onyx-soft: #151512;
  --onyx-line: #2a2a25;
  --ivory: #f5f1eb;
  --ivory-soft: #ece5d9;
  --ivory-line: #ddd3c2;
  --stone: #b8b2a6;
  --brass: #c8a24a;
  --brass-soft: #dbc07f;
  --olive: #3a3f34;
  --ink: #171712;

  /* Type */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --max-width: 1320px;
  --gutter: clamp(24px, 5vw, 80px);
  --section-pad: clamp(72px, 10vw, 160px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------- reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--brass); color: var(--onyx); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--onyx);
  color: var(--ivory);
  padding: 12px 20px;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------------------------------- type --------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--onyx);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow--stone { color: var(--stone); }

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  color: #4a473f;
  max-width: 62ch;
}

.on-dark { color: var(--ivory); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--ivory); }
.on-dark .lede { color: var(--stone); }

/* -------------------------------- dividers ------------------------------- */
.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 220px;
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--brass);
  opacity: 0.55;
}
.rule__mark {
  width: 6px;
  height: 6px;
  background: var(--brass);
  flex-shrink: 0;
}
.rule--left { margin-left: 0; margin-right: auto; }

hr.hairline {
  border: none;
  border-top: 1px solid var(--ivory-line);
  margin: 0;
}
.on-dark hr.hairline { border-top-color: var(--onyx-line); }

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

.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section--tight { padding-top: calc(var(--section-pad) * 0.6); padding-bottom: calc(var(--section-pad) * 0.6); }
.section--onyx { background: var(--onyx); }
.section--ivory-soft { background: var(--ivory-soft); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .eyebrow { margin-bottom: 18px; display: block; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 20px; }

/* --------------------------------- buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--onyx);
  border-radius: var(--radius);
  color: var(--onyx);
  background: transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: var(--onyx); color: var(--ivory); }

.btn--primary {
  background: var(--onyx);
  color: var(--ivory);
}
.btn--primary:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--onyx);
}

.btn--on-dark {
  border-color: var(--ivory);
  color: var(--ivory);
}
.btn--on-dark:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--onyx);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.text-link:hover { color: var(--brass); gap: 12px; }

/* ---------------------------------- nav ----------------------------------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 0;
}
.site-header.is-solid {
  position: fixed;
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(6px);
  padding: 18px 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 34px; width: auto; }
.brand__text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Homepage transparent header sits over the light side of the hero, so the
   mark starts dark and swaps to the light/ivory variant once the header
   solidifies to onyx on scroll. */
.brand__mark--light { display: none; }
.brand__text--swap { color: var(--onyx); }
.site-header.is-solid .brand__mark--dark { display: none; }
.site-header.is-solid .brand__mark--light { display: block; }
.site-header.is-solid .brand__text--swap { color: var(--ivory); }

.header-swap { color: var(--onyx); }
.site-header.is-solid .header-swap { color: var(--ivory); }

.nav-desktop {
  display: none;
}
.nav-desktop ul {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
}
.nav-desktop a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.site-header:not(.is-solid) .nav-desktop a {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.3s var(--ease);
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after { right: 0; }

.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
}
.nav-toggle__bars { width: 18px; height: 12px; position: relative; }
.nav-toggle__bars span {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
}
.nav-toggle__bars span:first-child { top: 0; }
.nav-toggle__bars span:last-child { bottom: 0; }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--onyx);
  color: var(--ivory);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 28px var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
}
.nav-mobile.is-open { transform: translateY(0); }
.nav-mobile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-mobile ul {
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 52px);
  font-weight: 500;
}
.nav-mobile__footer {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--stone);
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
}

/* ---------------------------------- hero ----------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ivory);
  overflow: hidden;
}
.hero > .wrap { width: 100%; }
.hero__visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background-image: url("../assets/hero/hero-material.jpg");
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,0.5) 12%, #000 30%);
  mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,0.5) 12%, #000 30%);
}
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,11,11,0.28), transparent 30%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero__mark { height: 78px; width: auto; margin-bottom: 36px; }
.hero__rule { margin-bottom: 30px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  margin-bottom: 26px;
}
.hero .lede {
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  color: #57534a;
  max-width: 46ch;
  line-height: 1.8;
}
.hero__ctas {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  text-shadow: 0 1px 12px rgba(245, 241, 235, 0.6);
}

@media (max-width: 899px) {
  .hero { min-height: auto; padding-top: 110px; }
  .hero__visual {
    position: relative;
    width: 100%;
    height: 260px;
    -webkit-mask-image: none;
    mask-image: none;
    order: 2;
  }
  .hero__visual::after { display: none; }
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero__content {
    order: 1;
    padding-top: 20px;
    padding-bottom: 48px;
    max-width: 100%;
  }
}

/* ------------------------------- portfolio strip --------------------------- */
.venture-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.venture-strip__item {
  padding: 20px 22px;
  border-left: 1px solid var(--onyx-line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s var(--ease);
}
.venture-strip__item:hover { background: rgba(200, 162, 74, 0.05); }
.venture-strip__mono {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--brass);
  line-height: 1;
}
.venture-strip__item h3 {
  font-size: 17px;
  color: var(--ivory);
  font-weight: 600;
}
.venture-strip__item p {
  font-size: 13px;
  color: var(--stone);
  line-height: 1.6;
}
.venture-strip__link {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

/* -------------------------------- venture cards (Ventures page) ------------ */
.venture-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: clamp(28px, 4vw, 56px) 0;
}
@media (min-width: 860px) {
  .venture-card { grid-template-columns: 0.85fr 1.15fr; align-items: center; }
  .venture-card--reverse .venture-card__media { order: 2; }
  .venture-card--reverse .venture-card__body { order: 1; }
}
.venture-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--onyx);
  display: flex;
  align-items: center;
  justify-content: center;
}
.venture-card__media img { width: 100%; height: 100%; object-fit: cover; }
.venture-card__body .eyebrow { display: block; margin-bottom: 14px; }
.venture-card__body h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.venture-card__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--brass);
  margin-bottom: 16px;
}
.venture-card__body p.desc {
  color: #4a473f;
  max-width: 56ch;
  margin-bottom: 20px;
}
.venture-card__meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
}

/* --------------------------------- footer ---------------------------------- */
.site-footer {
  background: var(--onyx);
  color: var(--stone);
  padding: var(--section-pad) 0 40px;
}
.footer-top {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--onyx-line);
}
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand img { height: 40px; margin-bottom: 20px; }
.footer-brand p.tagline {
  font-family: var(--font-display);
  color: var(--ivory);
  font-size: 20px;
  margin-bottom: 14px;
}
.footer-brand p.loc { font-size: 13px; letter-spacing: 0.05em; }
.footer-col h4 {
  font-family: var(--font-body);
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--brass); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.footer-bottom .closing {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-size: 11px;
}

/* --------------------------------- generic content -------------------------- */
.page-hero {
  padding-top: clamp(140px, 18vw, 220px);
  padding-bottom: clamp(56px, 8vw, 96px);
  background: var(--ivory);
}
.page-hero h1 { font-size: clamp(36px, 5.5vw, 60px); margin-bottom: 20px; }

.grid-2 { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: 1fr; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.principle {
  padding: 40px 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .principle { grid-template-columns: 220px 1fr; gap: 40px; }
}
.principle__num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--brass);
  letter-spacing: 0.08em;
}
.principle h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.principle p { max-width: 60ch; color: #4a473f; }

.card {
  background: var(--ivory-soft);
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--ivory-line);
}

/* ----------------------------------- forms ----------------------------------- */
.form-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--onyx);
}
.field input, .field select, .field textarea {
  border: 1px solid var(--ivory-line);
  background: var(--ivory);
  padding: 14px 16px;
  border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brass);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 13px; color: var(--stone); margin-top: 18px; }
.form-status { margin-top: 20px; font-size: 14px; }
.form-status[data-state="success"] { color: var(--olive); }
.form-status[data-state="error"] { color: #8a3b2b; }

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-detail dt {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
}
.contact-detail dd a { font-family: var(--font-display); font-size: 20px; }

/* legal pages */
.legal h2 { font-size: 22px; margin: 40px 0 14px; }
.legal p, .legal li { color: #4a473f; margin-bottom: 14px; max-width: 72ch; }
.legal li { list-style: disc; margin-left: 20px; }
.legal strong { color: var(--onyx); }

/* utility */
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* fade-up reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
