:root {
  --ink: #171714;
  --ink-soft: #22221e;
  --paper: #e8e1d4;
  --paper-muted: #bbb3a6;
  --copper: #ca6d38;
  --copper-dark: #8f4227;
  --line: rgba(232, 225, 212, 0.17);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

.site-shell {
  width: min(100%, 1600px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  border-inline: 1px solid var(--line);
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.25rem, 3vw, 3.5rem);
  align-items: center;
  min-height: 96px;
  padding: 0 clamp(1.25rem, 5vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--ink);
  background: var(--copper);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  transform: skewX(-7deg);
}

.brand-name,
.sector {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-line {
  height: 1px;
  background: var(--line);
}

.sector {
  color: var(--paper-muted);
}

.header-actions {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: center;
}

.webmail-link {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  color: var(--paper);
  border: 1px solid rgba(202, 109, 56, 0.65);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.webmail-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.5;
  transition: transform 180ms ease;
}

.webmail-link:hover {
  color: var(--ink);
  background: var(--copper);
  border-color: var(--copper);
}

.webmail-link:hover svg {
  transform: translate(2px, -2px);
}

.webmail-link:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  min-height: 710px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 9vw, 8.5rem) clamp(1.25rem, 5vw, 5.5rem);
}

.hero-copy::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 73%;
  content: "";
  background: var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2rem;
  color: var(--copper);
  font-size: clamp(0.65rem, 1vw, 0.76rem);
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.6;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 38px;
  height: 2px;
  content: "";
  background: var(--copper);
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.5rem, 9.4vw, 9.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.76;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

.title-connector {
  margin-left: clamp(1rem, 6vw, 6.5rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 225, 212, 0.58);
}

.title-highlight {
  position: relative;
  z-index: 3;
  width: max-content;
  margin-top: 0.12em;
  color: var(--copper);
}

.mine-art {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 0 64%, rgba(202, 109, 56, 0.08) 64%),
    repeating-linear-gradient(
      90deg,
      transparent 0 74px,
      rgba(232, 225, 212, 0.035) 75px
    ),
    var(--ink-soft);
}

.sun {
  position: absolute;
  top: 17%;
  right: 15%;
  width: clamp(100px, 12vw, 180px);
  aspect-ratio: 1;
  border: 1px solid rgba(202, 109, 56, 0.62);
  border-radius: 50%;
}

.sun::before,
.sun::after {
  position: absolute;
  content: "";
  background: rgba(202, 109, 56, 0.32);
}

.sun::before {
  top: 50%;
  left: -45%;
  width: 190%;
  height: 1px;
}

.sun::after {
  top: -45%;
  left: 50%;
  width: 1px;
  height: 190%;
}

.ridge {
  position: absolute;
  right: -12%;
  bottom: -8%;
  left: -18%;
  clip-path: polygon(
    0 100%,
    0 59%,
    18% 44%,
    28% 53%,
    49% 20%,
    61% 36%,
    75% 14%,
    100% 46%,
    100% 100%
  );
}

.ridge-back {
  bottom: 14%;
  height: 54%;
  background: #3a3932;
}

.ridge-front {
  height: 55%;
  background: linear-gradient(
    143deg,
    #a24e2c 0 19%,
    #753a27 19% 34%,
    #3d3129 34% 100%
  );
  clip-path: polygon(
    0 100%,
    0 74%,
    14% 56%,
    31% 67%,
    47% 35%,
    56% 48%,
    68% 21%,
    78% 36%,
    88% 29%,
    100% 55%,
    100% 100%
  );
}

.cut-line {
  position: absolute;
  z-index: 2;
  right: -4%;
  height: 1px;
  background: rgba(232, 225, 212, 0.45);
  transform-origin: right;
}

.cut-line-one {
  bottom: 30%;
  width: 82%;
  transform: rotate(-12deg);
}

.cut-line-two {
  bottom: 20%;
  width: 61%;
  transform: rotate(8deg);
}

.ore-mark {
  position: absolute;
  z-index: 3;
  width: 10px;
  aspect-ratio: 1;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(232, 225, 212, 0.11);
}

.ore-mark-one {
  right: 31%;
  bottom: 25%;
}

.ore-mark-two {
  right: 17%;
  bottom: 40%;
  width: 7px;
}

.art-frame {
  position: absolute;
  inset: clamp(1rem, 3vw, 2.5rem);
  border: 1px solid rgba(232, 225, 212, 0.11);
}

.hero-index {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4rem);
  bottom: 2.2rem;
  z-index: 4;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: rgba(232, 225, 212, 0.65);
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
}

.index-line {
  width: 48px;
  height: 1px;
  background: currentColor;
}

.purpose {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.purpose-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.4rem, 3vw, 3.5rem);
  min-height: 440px;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 5vw, 5.5rem);
  overflow: hidden;
}

.mission {
  color: var(--ink);
  background: var(--paper);
}

.vision {
  background: var(--copper-dark);
}

.card-number {
  padding-top: 0.42rem;
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.card-number::after {
  display: block;
  width: 1px;
  height: 80px;
  margin: 1rem auto 0;
  content: "";
  background: currentColor;
  opacity: 0.35;
}

.card-content {
  max-width: 570px;
}

.card-label {
  margin: 0 0 1.2rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.purpose h2 {
  max-width: 420px;
  margin: 0 0 1.8rem;
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-transform: uppercase;
}

.purpose-card .card-content > p:last-child {
  max-width: 530px;
  margin: 0;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.85;
}

.mission .card-label {
  color: var(--copper-dark);
}

.vision .card-label {
  color: #f4b087;
}

.vision::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 310px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(232, 225, 212, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(232, 225, 212, 0.025),
    0 0 0 70px rgba(232, 225, 212, 0.02);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem clamp(1.25rem, 5vw, 5.5rem);
  color: var(--paper-muted);
  border-top: 1px solid var(--line);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.hero h1[data-reveal] {
  transition-delay: 120ms;
}

.mine-art[data-reveal] {
  transition-delay: 240ms;
}

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

  .hero-copy {
    min-height: 610px;
  }

  .hero-copy::after {
    display: none;
  }

  h1 {
    font-size: clamp(4.2rem, 15.5vw, 8rem);
  }

  .mine-art {
    min-height: 430px;
    border-top: 1px solid var(--line);
  }

  .purpose {
    grid-template-columns: 1fr;
  }

  .purpose-card {
    min-height: 400px;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 78px;
  }

  .brand-name,
  .header-line {
    display: none;
  }

  .sector {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand-mark {
    width: 40px;
  }

  .webmail-link {
    min-height: 40px;
    padding-inline: 0.85rem;
  }

  .hero-copy {
    min-height: 530px;
  }

  .eyebrow {
    max-width: 280px;
    margin-bottom: 2.7rem;
  }

  h1 {
    font-size: clamp(3.65rem, 18vw, 5.4rem);
    line-height: 0.81;
  }

  .title-connector {
    margin-left: 0.35em;
  }

  .mine-art {
    min-height: 360px;
  }

  .hero-index {
    bottom: 1.5rem;
  }

  .purpose-card {
    grid-template-columns: 1fr;
    gap: 1.3rem;
    min-height: auto;
    padding-block: 4.2rem;
  }

  .card-number {
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .card-number::after {
    width: 65px;
    height: 1px;
    margin: 0;
  }

  .purpose h2 {
    font-size: clamp(3.1rem, 15vw, 4.5rem);
  }

  .site-footer {
    flex-direction: column;
    gap: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
