/* Axe Communications — static site
   Palette: charcoal, warm off-white, copper. Type: system sans + serif italic accent. */

:root {
  --bg: #0e0e10;
  --bg-2: #141417;
  --bg-3: #191a1d;
  --ink: #f3efe7;
  --muted: #a8a39a;
  --faint: #6f6b64;
  --copper: #cd7d1e;
  --copper-2: #e2a65c;
  --line: rgba(243, 239, 231, 0.12);
  --line-strong: rgba(243, 239, 231, 0.2);
  --radius: 14px;
  --wrap: 1180px;
  --serif: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--copper); color: #0b0b0c; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--copper);
  color: #0b0b0c;
  padding: 10px 16px;
  z-index: 200;
  font-weight: 700;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(14, 14, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand img { width: 44px; height: auto; }
.brand-name { font-size: 1.02rem; }
.brand-name span { color: var(--muted); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav a { color: var(--muted); transition: color 0.2s ease; }
.nav a:hover { color: var(--ink); }
.nav-cta {
  color: #0b0b0c !important;
  background: var(--copper);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--copper-2); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 94vh;
  min-height: 94svh;
  display: flex;
  align-items: flex-end;
  padding: clamp(120px, 18vh, 200px) 0 clamp(48px, 8vh, 90px);
  overflow: hidden;
}
.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img { object-fit: cover; object-position: center 42%; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 14, 16, 0.55) 0%, rgba(14, 14, 16, 0.25) 40%, rgba(14, 14, 16, 0.92) 100%),
    linear-gradient(90deg, rgba(14, 14, 16, 0.75) 0%, rgba(14, 14, 16, 0.1) 65%);
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.9rem, 7.4vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 14ch;
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--copper-2);
  letter-spacing: -0.02em;
}

.lede {
  margin: 26px 0 0;
  max-width: 56ch;
  color: #d7d2c8;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--copper); color: #0b0b0c; }
.btn-primary:hover { background: var(--copper-2); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.07); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  margin: clamp(34px, 6vh, 64px) 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 860px;
}
.hero-stats div { min-width: 140px; }
.hero-stats dt { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }
.hero-stats dd { margin: 3px 0 0; color: var(--muted); font-size: 0.82rem; }

/* ---------- sections ---------- */

.section { padding: clamp(72px, 10vw, 140px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.section-lede {
  margin: 18px 0 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.02rem;
}

/* ---------- services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  background: var(--bg-2);
  padding: clamp(24px, 3vw, 36px);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease;
}
.service:hover { background: var(--bg-3); }
.service .num {
  color: var(--copper);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.service h3 {
  margin: auto 0 10px;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}
.service p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.65; }

/* ---------- work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.work-card {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-2);
}
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
  filter: saturate(0.9);
}
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0) 45%, rgba(10, 10, 12, 0.88) 100%);
  pointer-events: none;
}
.work-card figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.work-card figcaption span { font-size: 0.92rem; font-weight: 650; letter-spacing: -0.01em; }
.work-card figcaption small { color: var(--copper-2); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; white-space: nowrap; }
.work-card:hover img { transform: scale(1.05); filter: saturate(1.1); }

/* ---------- clients ---------- */

.client-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.client-row li {
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.client-row li:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.06); }
.client-row img {
  max-height: 42px;
  width: auto;
  max-width: 100%;
  filter: grayscale(1) brightness(1.55) contrast(0.95);
  opacity: 0.75;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.client-row li:hover img { filter: grayscale(0.2) brightness(1.1); opacity: 1; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.about-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.about-copy p { color: var(--muted); margin: 0 0 14px; }
.points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.points li {
  padding-left: 18px;
  border-left: 2px solid var(--copper);
  color: var(--muted);
  font-size: 0.94rem;
}
.points strong { color: var(--ink); }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.contact-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.contact-details { margin: 30px 0 0; display: grid; gap: 18px; }
.contact-details div { border-top: 1px solid var(--line); padding-top: 14px; }
.contact-details dt {
  color: var(--copper-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.contact-details dd { margin: 5px 0 0; color: var(--ink); }
.contact-details a:hover { color: var(--copper-2); }

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.8rem; font-weight: 650; color: var(--muted); }
.field label span { color: var(--copper); }
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper);
  background: #111113;
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) { border-color: #b45a4a; }

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.consent input { margin-top: 3px; accent-color: var(--copper); }
.consent a { color: var(--copper-2); text-decoration: underline; text-underline-offset: 2px; }

.captcha { margin: 0 0 18px; min-height: 62px; }
.captcha altcha-widget { display: block; }

.btn-submit { width: 100%; }
.btn-submit[disabled] { opacity: 0.55; cursor: wait; transform: none; }

.form-status { margin: 14px 0 0; min-height: 22px; font-size: 0.88rem; color: var(--muted); }
.form-status.is-ok { color: #8fbf7f; }
.form-status.is-error { color: #e08a7a; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 70px) 0 26px;
  background: #0b0b0d;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 28px;
  align-items: start;
}
.footer-note { color: var(--muted); margin: 14px 0 0; font-size: 0.9rem; }
.site-footer nav { display: grid; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.site-footer nav a:hover { color: var(--ink); }
.footer-contact { display: grid; gap: 8px; font-size: 0.9rem; color: var(--muted); text-align: right; }
.footer-contact a:hover { color: var(--copper-2); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.78rem;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { text-align: left; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 72px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 18px clamp(20px, 4vw, 40px) 26px;
    background: rgba(14, 14, 16, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 0; font-size: 1rem; width: 100%; }
  .nav-cta { margin-top: 10px; text-align: center; padding: 12px 16px; }
  .menu-toggle { display: block; }
  .hero { min-height: 88vh; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 14px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .work-grid { grid-template-columns: 1fr; }
  .brand-name span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
