/* ==========================================================================
   BASE STYLES, ACCESSIBILITY & SHARED UTILITIES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light-mid);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

ul {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

section[id] {
  scroll-margin-top: 84px;
}

/* Focus Accessibility */
:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 3px;
}

.portfolio-section :focus-visible,
.site-footer :focus-visible,
.navbar :focus-visible {
  outline-color: #ffffff;
}

/* Shared Light Section Backdrop */
.section-light {
  background: radial-gradient(
    circle at 50% 20%,
    var(--bg-light-start) 0%,
    var(--bg-light-mid) 52%,
    var(--bg-light-end) 100%
  );
  padding: 100px 0;
}

.section-header-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 44px;
}

.boxed-heading {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  padding: 16px 46px;
  border: 3px solid var(--text-black);
  color: var(--text-black);
  text-align: center;
}

.boxed-heading--light {
  border-color: var(--text-white);
  color: var(--text-white);
}

.section-lead {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.85;
}

/* Vertical-Bordered Action Links (| READ MORE | / | EXPLORE |) */
.line-action-btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 8px 26px;
  border-left: 2.5px solid var(--text-black);
  border-right: 2.5px solid var(--text-black);
  color: var(--text-black);
  transition: padding var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.line-action-btn:hover {
  padding-left: 34px;
  padding-right: 34px;
  background-color: var(--text-black);
  color: var(--text-white);
}

.line-action-btn--light {
  border-left-color: var(--text-white);
  border-right-color: var(--text-white);
  color: var(--text-white);
}

.line-action-btn--light:hover {
  background-color: var(--text-white);
  color: var(--text-black);
}

.explore-marker {
  display: flex;
  justify-content: center;
  margin-bottom: 44px;
}

.geo-divider {
  display: flex;
  justify-content: center;
  margin: 48px 0 64px;
}

.geo-divider--bottom {
  margin: 72px 0 0;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-hero {
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-left .reveal-hero:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-left .reveal-hero:nth-child(3) {
  animation-delay: 0.16s;
}

.hero-left .reveal-hero:nth-child(4) {
  animation-delay: 0.24s;
}

.hero-left .reveal-hero:nth-child(5) {
  animation-delay: 0.32s;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
