/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --bg:        #FCFDFF;
  --bg-alt:    #F7F9FD;
  --ink:       #0D1420;
  --ink-mid:   #4A5878;
  --ink-faint: #8898B8;
  --rule:      #E4ECF6;
  --accent:    #F5A623;
  --card-bg:   #FFFFFF;
}

/* ─── Global resets for landing page ───────────────────────── */
body.container-flow {
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#blockContent {
  padding: 0 !important;
  margin: 0 !important;
}

/* ─── Navigation ────────────────────────────────────────────── */
.hp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  height: 64px;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms, transform 200ms ease-in-out;
}

.hp-nav.scrolled {
  border-bottom-color: var(--rule);
}

.hp-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hp-nav-logo {
  display: block;
  line-height: 0;
}

.hp-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}

.hp-nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 180ms;
}

.hp-nav-links a:hover,
.hp-nav-links a.nav-current {
  color: var(--ink);
}

/* ─── Page wrap ─────────────────────────────────────────────── */
.hp-wrap {
  padding-top: 64px;
  background: var(--bg);
}

.hp-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px 144px;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hp-hero {
  padding: 112px 0 128px;
}

.hero-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
  font-family: 'DM Sans', sans-serif;
}

.hero-name {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 80px !important;
  font-weight: 500 !important;
  line-height: 1.0 !important;
  letter-spacing: -0.028em !important;
  color: var(--ink) !important;
  margin: 0 0 36px 0 !important;
}

.hero-nick {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 300;
  color: var(--ink-mid);
  max-width: 640px;
  line-height: 1.5;
  margin: 0;
}

/* ─── Card base ─────────────────────────────────────────────── */
.hp-case {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--card-bg);
  text-decoration: none !important;
  color: inherit !important;
  display: flex;
  transition: border-color 320ms ease, transform 320ms ease, box-shadow 320ms ease;
}

.hp-case:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
  color: inherit !important;
  text-decoration: none !important;
}

.hp-case-img {
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.hp-case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hp-case:hover .hp-case-img img {
  transform: scale(1.04);
}

.hp-case-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card-bg);
}

/* ─── Tags ──────────────────────────────────────────────────── */
.hp-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hp-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hp-tag + .hp-tag::before {
  content: ' · ';
  padding: 0 5px;
  color: var(--rule);
}

/* ─── Content blocks ────────────────────────────────────────── */
.hp-block {
  margin-bottom: 16px;
}

.hp-block:last-child {
  margin-bottom: 0;
}

.hp-block strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.hp-block p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-mid);
  margin: 0;
}

/* ─── Hero card (Auto Charge) ───────────────────────────────── */
.hp-hero-case {
  min-height: 500px;
  margin-bottom: 20px;
}

.hp-hero-case .hp-case-img {
  flex: 0 0 58%;
}

.hp-hero-case .hp-case-text {
  flex: 0 0 42%;
  padding: 48px 52px;
}

.hp-hero-case .hp-case-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 40px !important;
  font-weight: 500 !important;
  letter-spacing: -0.022em !important;
  line-height: 1.04 !important;
  color: var(--ink) !important;
  margin: 0 0 28px 0 !important;
}

/* ─── Support row ───────────────────────────────────────────── */
.hp-support-row {
  display: flex;
  gap: 20px;
}

.hp-support-case {
  flex: 1;
  flex-direction: column;
}

.hp-support-case .hp-case-img {
  height: 260px;
  width: 100%;
}

.hp-support-case .hp-case-text {
  padding: 32px;
  justify-content: flex-start;
}

.hp-support-case .hp-case-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px !important;
  font-weight: 500 !important;
  letter-spacing: -0.022em !important;
  color: var(--ink) !important;
  margin: 0 0 20px 0 !important;
  line-height: 1.1 !important;
}

/* ─── Earlier Work grid ─────────────────────────────────────── */
#past-projects {
  background: var(--bg-alt) !important;
  padding: 72px 56px 96px !important;
}

.hp-past-label {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--ink-faint) !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  margin: 0 0 40px 0 !important;
}

.ew-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.ew-item {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  transition: opacity 200ms ease;
}

.ew-item:hover {
  opacity: 0.65;
  text-decoration: none !important;
}

.ew-img {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
  margin-bottom: 12px;
  background: var(--bg-alt);
}

.ew-img img {
  width: 100% !important;
  height: auto !important;
  display: block;
}

.ew-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 4px 0;
}

.ew-type {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-faint);
  margin: 0;
}

/* ─── Footer ────────────────────────────────────────────────── */
footer.hp-footer {
  border-top: 1px solid var(--rule);
  padding: 52px 56px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--bg);
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 180ms;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--ink-faint);
  margin: 0;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hp-nav-inner { padding: 0 32px; }
  .hp-inner { padding: 0 32px 120px; }

  .hero-name { font-size: 64px !important; }

  .hp-hero-case {
    flex-direction: column;
    min-height: unset;
  }
  .hp-hero-case .hp-case-img {
    flex: none !important;
    height: 280px;
    width: 100%;
  }
  .hp-hero-case .hp-case-text {
    flex: none !important;
  }

  .hp-support-row {
    flex-direction: column;
    gap: 20px;
  }

  #past-projects { padding: 64px 32px 80px !important; }
  .ew-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hp-nav-inner { padding: 0 20px; }
  .hp-inner { padding: 0 20px 80px; }

  .hero-name { font-size: 46px !important; }
  .hero-tagline { font-size: 18px !important; }

  .hp-hero-case .hp-case-text { padding: 28px 24px; }
  .hp-support-case .hp-case-text { padding: 28px 24px; }

  #past-projects { padding: 48px 20px 64px !important; }
  .ew-grid { grid-template-columns: 1fr; }

  footer.hp-footer { padding: 40px 20px 32px; }
}
