/* ============================================================
   A E Management — shared stylesheet
   Cream / black editorial aesthetic
   ============================================================ */

:root {
  --cream:       #f4efe4;   /* page background          */
  --cream-card:  #f1e9d6;   /* warm card top            */
  --paper:       #ffffff;   /* card body / clean panels */
  --ink:         #14130f;   /* near-black text          */
  --ink-soft:    #55524a;   /* muted body text          */
  --line:        #e3dccb;   /* hairline borders         */
  --accent:      #14130f;   /* buttons / emphasis       */
  --radius:      18px;
  --radius-sm:   10px;
  --maxw:        1180px;
  --ease:        cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 .4em;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid var(--ink);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  cursor: pointer;
}
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { transform: translateY(-2px); background: #2b2822; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { transform: translateY(-2px); background: var(--ink); color: var(--cream); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-underline {
  font-weight: 600;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity .2s var(--ease);
}
.link-underline:hover { opacity: .6; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.brand-logo {
  display: block; width: 58px; height: 48px;
  background-color: currentColor;
  -webkit-mask: url("../images/ae-logo.svg") left center / contain no-repeat;
          mask: url("../images/ae-logo.svg") left center / contain no-repeat;
}
.site-footer .brand-logo { width: 62px; height: 51px; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: .3s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--ink); transition: .3s;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 90px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); font-weight: 600; }
.hero .lead { font-size: 20px; color: var(--ink-soft); max-width: 46ch; margin: 22px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  aspect-ratio: 1/1;
  background: var(--cream-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
}
.hero-visual svg { width: 62%; height: 62%; }

/* ---------- section shell ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 46px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(34px, 4.5vw, 52px); }

/* ---------- services grid ---------- */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.svc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px -28px rgba(20,19,15,.4); }
.svc-media {
  background: var(--cream-card);
  aspect-ratio: 1.5/1;
  display: grid; place-items: center;
  padding: 30px;
}
.svc-media svg { width: 100%; height: 100%; max-height: 150px; }
.svc-body { padding: 26px 26px 30px; }
.svc-body h3 { font-size: 23px; }
.svc-body p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { text-align: left; }
.stat .num { font-size: clamp(38px, 5vw, 56px); font-weight: 600; letter-spacing: -0.03em; }
.stat .label { color: var(--ink-soft); font-size: 15px; }

/* ---------- about split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .prose p { color: var(--ink-soft); }
.split-visual {
  aspect-ratio: 4/3; border-radius: var(--radius);
  background: var(--cream-card); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.split-visual svg { width: 55%; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.pill-list li {
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 500;
}

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.step .idx { font-size: 14px; font-weight: 700; letter-spacing: .15em; color: var(--ink-soft); }
.step h3 { font-size: 20px; margin-top: 14px; }
.step p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink); color: var(--cream);
  border-radius: 26px; padding: 66px 54px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); color: var(--cream); }
.cta-band p { color: color-mix(in srgb, var(--cream) 72%, transparent); margin: 0; }
.cta-band .btn--solid { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.cta-band .btn--solid:hover { background: #fff; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-info dt { font-weight: 600; margin-top: 20px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.contact-info dd { margin: 4px 0 0; font-size: 18px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 74px 0 40px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 68px); }
.page-hero p { font-size: 20px; color: var(--ink-soft); max-width: 60ch; margin-top: 18px; }

/* ---------- service detail rows ---------- */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 44px 0; border-top: 1px solid var(--line); }
.svc-row:nth-child(even) .svc-row-visual { order: -1; }
.svc-row-visual { aspect-ratio: 4/3; background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; }
.svc-row-visual svg { width: 52%; }
.svc-row h2 { font-size: 32px; }
.svc-row ul { padding-left: 0; list-style: none; margin: 18px 0 0; }
.svc-row li { padding: 8px 0 8px 28px; position: relative; color: var(--ink-soft); }
.svc-row li::before { content: ""; position: absolute; left: 0; top: 17px; width: 12px; height: 2px; background: var(--ink); }

/* ---------- portfolio / work ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-soft);
  border-radius: 999px; padding: 9px 20px; font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.work-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.work-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px -30px rgba(20,19,15,.45); }
.work-shot {
  aspect-ratio: 16/10; background: var(--cream-card);
  border-bottom: 1px solid var(--line); overflow: hidden; position: relative;
}
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.work-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.work-tag {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 12px;
}
.work-body h3 { font-size: 24px; margin: 0; }
.work-role { margin: 0; font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.work-role a { border-bottom: 1px solid var(--ink-soft); font-weight: 600; }
.work-role a:hover { color: var(--ink); border-color: var(--ink); }
.work-body p { margin: 0; color: var(--ink-soft); font-size: 15px; flex: 1; }
.work-visit { font-weight: 600; border-bottom: 2px solid var(--ink); align-self: flex-start; padding-bottom: 2px; transition: opacity .2s; }
.work-visit:hover { opacity: .6; }
.work-card.is-hidden { display: none; }

@media (max-width: 780px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 70px 0 34px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--cream); }
.site-footer .brand .mark { background: var(--cream); color: var(--ink); }
.footer-about { color: color-mix(in srgb, var(--cream) 66%, transparent); max-width: 34ch; margin-top: 16px; font-size: 15px; }
.footer-col h4 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--cream) 60%, transparent); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: color-mix(in srgb, var(--cream) 80%, transparent); font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 54px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--cream) 20%, transparent); font-size: 14px; color: color-mix(in srgb, var(--cream) 60%, transparent); }

/* ---------- booking modal (Book a call) ---------- */
.cal-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.cal-modal.open { display: block; }
.cal-modal__backdrop { position: absolute; inset: 0; background: rgba(20,19,15,.55); backdrop-filter: blur(3px); }
.cal-modal__dialog {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(920px, 94vw); height: min(760px, 90vh);
  background: var(--paper); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.5); display: flex; flex-direction: column;
}
.cal-modal__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cal-modal__bar strong { font-weight: 600; font-size: 15px; }
.cal-modal__close { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 2px 8px; border-radius: 8px; }
.cal-modal__close:hover { background: var(--cream-card); color: var(--ink); }
.cal-modal iframe { flex: 1; width: 100%; border: 0; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .split, .contact-grid, .svc-row { grid-template-columns: 1fr; gap: 40px; }
  .svc-row:nth-child(even) .svc-row-visual { order: 0; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { max-width: 420px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 18px 24px 26px; transform: translateY(-120%); transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 17px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: inline-flex; }
  .services, .stats, .steps, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 28px; }
  .section { padding: 60px 0; }
}
