:root {
  --ink: #070908;
  --ink-raised: #0d0f0e;
  --paper: #f2ede3;
  --paper-muted: #a9a49a;
  --brass: #bd8240;
  --brass-bright: #dfa95d;
  --rule: rgba(189, 130, 64, 0.46);
  --rule-soft: rgba(242, 237, 227, 0.15);
  --gutter: clamp(1.4rem, 4vw, 5rem);
  --serif: "Bodoni MT", "Bodoni 72", Didot, "Iowan Old Style", Georgia, serif;
  --sans: Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: var(--gutter);
  display: flex;
  width: calc(100% - (2 * var(--gutter)));
  min-height: 7.2rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--brass-bright);
  text-decoration: none;
}

.brand-monogram {
  display: grid;
  width: 3.5rem;
  height: 3.9rem;
  place-items: center;
  border: 1px solid currentColor;
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: -0.08em;
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.55vw, 1.45rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

nav { display: flex; gap: clamp(1.7rem, 4vw, 4.5rem); }

nav a {
  position: relative;
  font-size: 0.95rem;
  text-decoration: none;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--brass-bright);
  transition: transform 240ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(960px, 100svh);
  overflow: hidden;
  align-items: center;
  padding: 9rem var(--gutter) 5rem;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--ink) url("assets/solar-hero.png") center / cover no-repeat;
  animation: settle 1500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(7, 9, 8, 0.36) 0%, rgba(7, 9, 8, 0.08) 45%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(50rem, 58vw);
  padding-top: 2.5rem;
}

.hero h1,
.approach h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero h1 {
  font-size: clamp(3.7rem, 5.9vw, 6.85rem);
  line-height: 0.94;
  text-wrap: balance;
  animation: rise 900ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-rule {
  width: 6.2rem;
  height: 1px;
  margin-top: clamp(1.75rem, 3.4vh, 2.65rem);
  background: var(--brass-bright);
  animation: draw 900ms 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content > p {
  margin: 1.65rem 0 2.25rem;
  color: rgba(242, 237, 227, 0.88);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.6;
  animation: rise 900ms 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.button {
  display: inline-flex;
  min-width: min(21rem, 100%);
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.35rem 1rem 1.65rem;
  border: 1px solid var(--brass);
  color: var(--brass-bright);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
  animation: rise 900ms 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.button svg {
  width: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.button:hover,
.button:focus-visible {
  background: var(--brass-bright);
  color: var(--ink);
  transform: translateY(-2px);
}

.approach {
  position: relative;
  padding: clamp(5rem, 9vw, 9rem) var(--gutter) 0;
  border-top: 1px solid var(--rule);
}

.section-inner,
.contact-panel,
footer {
  width: min(100%, 108rem);
  margin-inline: auto;
}

.section-index {
  position: absolute;
  top: clamp(5.2rem, 9.2vw, 9.2rem);
  left: max(0.4rem, calc(var(--gutter) * 0.18));
  color: var(--brass-bright);
  font-family: var(--serif);
  font-size: 1rem;
}

.approach-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(22rem, 0.75fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 10rem);
}

.approach h2 {
  max-width: 10ch;
  font-size: clamp(4rem, 7vw, 8rem);
  line-height: 0.94;
}

.about-copy {
  max-width: 34rem;
  margin: 1rem 0 0;
  padding-top: 2.2rem;
  border-top: 1px solid var(--rule);
  color: rgba(242, 237, 227, 0.76);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.8;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(4rem, 7vw, 7rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: rgba(242, 237, 227, 0.9);
}

.capabilities span {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.3rem);
  padding: 1.8rem 1.2rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
}

.capabilities span + span { border-left: 1px solid var(--rule); }

.capabilities b {
  color: var(--brass-bright);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.solar-detail {
  width: calc(100% + (2 * var(--gutter)));
  height: clamp(17rem, 38vw, 36rem);
  margin-top: 1.25rem;
  margin-left: calc(-1 * var(--gutter));
  background: var(--ink-raised) url("assets/solar-detail.png") center / cover no-repeat;
}

.contact {
  position: relative;
  padding: clamp(6rem, 11vw, 11rem) var(--gutter) clamp(5rem, 9vw, 8rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 20%, rgba(223, 169, 93, 0.17), transparent 19rem),
    var(--ink);
  border-top: 1px solid var(--rule);
}

.contact::before,
.contact::after {
  position: absolute;
  right: -14rem;
  width: 42rem;
  height: 42rem;
  border: 1px solid rgba(223, 169, 93, 0.3);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.contact::before { top: -28rem; }
.contact::after { top: -17rem; right: -25rem; }

.contact-panel { position: relative; z-index: 1; }

.contact h2 {
  max-width: 13ch;
  font-size: clamp(4rem, 7.7vw, 8.8rem);
  line-height: 0.9;
}

.contact-link {
  display: grid;
  grid-template-columns: 2.5rem auto minmax(3rem, 1fr);
  width: min(100%, 40rem);
  min-height: 5rem;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--brass-bright);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  text-decoration: none;
  transition: color 200ms ease, padding 200ms ease;
}

.mail-mark {
  position: relative;
  display: block;
  width: 2rem;
  height: 1.45rem;
  border: 1px solid currentColor;
}

.mail-mark::after {
  position: absolute;
  top: -1px;
  right: 0.25rem;
  left: 0.25rem;
  height: 1rem;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(32deg) skewX(-24deg);
  transform-origin: center;
}

.contact-link svg {
  width: clamp(2.8rem, 4vw, 4.5rem);
  justify-self: end;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1;
}

.contact-link:hover,
.contact-link:focus-visible {
  padding-left: 0.35rem;
  color: var(--paper);
}

footer {
  display: grid;
  grid-template-columns: minmax(18rem, 0.7fr) minmax(24rem, 1.3fr) auto;
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  padding: 3.5rem var(--gutter) 4rem;
  border-top: 1px solid var(--rule-soft);
  color: var(--paper-muted);
  font-family: var(--serif);
  font-size: 0.82rem;
}

.footer-identity { display: flex; align-items: center; gap: 1.25rem; }

.footer-monogram {
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass-bright);
  font-size: 0.78rem;
}

.footer-brand {
  color: var(--paper);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.legal {
  max-width: 44rem;
  margin: 0;
  line-height: 1.7;
}

.copyright { white-space: nowrap; }

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 4px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(2rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes draw {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

@keyframes settle {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .site-header { min-height: 6rem; }
  .brand-monogram { width: 3rem; height: 3.25rem; }
  .brand-name { font-size: 0.9rem; letter-spacing: 0.25em; }
  .hero { min-height: 800px; align-items: start; padding-top: 9rem; }
  .hero-art { background-position: 58% center; }
  .hero-art::after { background: linear-gradient(180deg, rgba(7, 9, 8, 0.98) 0%, rgba(7, 9, 8, 0.78) 43%, transparent 75%); }
  .hero-content { width: 100%; padding-top: 0; }
  .hero h1 { max-width: 12ch; font-size: clamp(3.35rem, 10vw, 6rem); }
  .approach-copy { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-copy { max-width: 42rem; margin-left: auto; }
  .capabilities { grid-template-columns: 1fr; }
  .capabilities span + span { border-top: 1px solid var(--rule); border-left: 0; }
  footer { grid-template-columns: 1fr; }
  .copyright { white-space: normal; }
}

@media (max-width: 560px) {
  .site-header { left: 1.15rem; width: calc(100% - 2.3rem); }
  .brand-monogram { display: none; }
  .brand-name { font-size: 0.72rem; letter-spacing: 0.2em; }
  nav { gap: 1.25rem; }
  nav a { font-size: 0.78rem; }
  .hero { min-height: 720px; padding-right: 1.15rem; padding-left: 1.15rem; }
  .hero h1 { font-size: clamp(3.1rem, 14vw, 4.4rem); line-height: 0.92; }
  .hero-content > p { max-width: 18rem; }
  .button { min-width: 100%; }
  .section-index { display: none; }
  .approach { padding-right: 1.15rem; padding-left: 1.15rem; }
  .approach h2 { font-size: clamp(3.3rem, 15vw, 5rem); }
  .about-copy { padding-top: 1.5rem; }
  .solar-detail { width: calc(100% + 2.3rem); margin-left: -1.15rem; background-position: 60% center; }
  .contact { padding-right: 1.15rem; padding-left: 1.15rem; }
  .contact h2 { font-size: clamp(3.4rem, 15vw, 5rem); }
  .contact-link { grid-template-columns: 2rem 1fr 3rem; gap: 0.8rem; font-size: 1.15rem; }
  footer { padding-right: 1.15rem; padding-left: 1.15rem; }
  .footer-brand { font-size: 0.72rem; letter-spacing: 0.2em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
