/* Shared site styles. Cascade order is intentional; responsive overrides follow base rules. */

@font-face {
  font-family: Comfortaa;
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/comfortaa.ttf") format("truetype");
}

:root {
  --paper: #e9edee;
  --ink: #222721;
  --muted: #74786e;
  --line: #cdd4d3;
  --green: #c5f277;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Onest,Arial,sans-serif;
}

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

button {
  font: inherit;
}

.shell {
  max-width: 1480px;
  margin: auto;
  padding: 0 6vw;
}

header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 15px;
  align-items: center;
}

.mark {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -3px;
}

nav {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}

.contact-link {
  padding-bottom: 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: 30px;
  padding: 55px 0 65px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.dot {
  width: 6px;
  height: 6px;
  background: #7a9e45;
  border-radius: 50%;
}

h1 {
  margin: 27px 0 25px;
}

.intro {
  max-width: 350px;
  line-height: 1.8;
  color: #697061;
}

.art {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.art::before {
  content: '';
  position: absolute;
  inset: 8%;
  background: radial-gradient(ellipse,#d6e3bc88,transparent 68%);
  filter: blur(25px);
}

.orbital {
  width: 76%;
  height: 76%;
  transform-style: preserve-3d;
  animation: float 15s ease-in-out infinite;
  position: relative;
  transform: rotate(-26deg);
}

.ring {
  position: absolute;
  border: 1px solid #6b7952;
  border-radius: 50%;
  inset: 0;
  transform: rotateY(var(--r));
  box-shadow: inset 1px 0 #c5f27766;
}

.art-note {
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.cross {
  position: absolute;
  color: #879078;
  font-size: 18px;
  font-weight: 400;
}

.cross.one {
  top: 9%;
  left: 12%;
}

.cross.two {
  bottom: 14%;
  right: 1%;
}

.bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.bottom strong {
  font-weight: 500;
  color: var(--ink);
}

dialog {
  color: var(--ink);
}

dialog h2 {
  margin-top: 0;
}

dialog p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.close {
  border: 1px solid var(--line);
  padding: 10px 18px;
  background: transparent;
  cursor: pointer;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid #779c45;
  outline-offset: 5px;
}

@keyframes float {
  0%, 100% {
    transform: rotate(-26deg) rotateY(-20deg) rotateX(12deg);
  }

  50% {
    transform: rotate(-14deg) rotateY(35deg) rotateX(-12deg);
  }
}

@media(min-width:1600px) {
  .hero {
    min-height: 720px;
  }
}

@media(max-width:760px) {
  .shell {
    padding: 0 7vw;
  }

  nav {
    font-size: 11px;
  }

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

  .art {
    margin: 0 auto;
  }

  .bottom {
    font-size: 9px;
    align-items: flex-start;
  }

  .bottom span:last-child {
    text-align: right;
  }
}

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

  .orbital {
    animation: none;
  }
}

h1 {
  font-family: Comfortaa,Arial,sans-serif;
  font-size: clamp(42px,4.7vw,72px);
  letter-spacing: -.055em;
  line-height: 1.18;
  font-weight: 400;
}

h1 > span {
  color: #737f5f;
}

h1 > [data-copy="title"] {
  color: var(--ink);
}

.intro {
  font-size: 15px;
}

.languages {
  display: flex;
  gap: 4px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.languages button {
  background: none;
  border: 0;
  color: #777c70;
  padding: 7px;
  font-size: 10px;
  cursor: pointer;
}

.languages button[aria-pressed="true"] {
  color: var(--ink);
  background: #dfe5d4;
}

.mark {
  font-family: Onest,Arial,sans-serif;
}

.bottom {
  font-size: 11px;
}

@media(pointer:fine) {
  html, body, body *, a, a *, button, button * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M23 25L7 7M7 7V21M7 7H21' fill='none' stroke='%23171717' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 7 7,auto;
  }
}

@media(max-width:760px) {

  .languages {
    padding-left: 9px;
    gap: 0;
  }

  h1 {
    font-size: clamp(34px,8vw,56px);
  }

  .intro {
    font-size: 14px;
  }
}

@media(max-width:390px) {
  nav {
    gap: 9px;
    font-size: 10px;
  }

  .languages {
    padding-left: 4px;
  }

  .languages button {
    padding: 5px;
  }

  .mark {
    font-size: 30px;
  }
}

@media(max-width:760px) {

  .bottom {
    flex-wrap: wrap;
    gap: 20px;
  }
}

.contact-link {
  border-bottom: 0;
}

.contact-link:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

dialog h2 {
  font-family: Comfortaa,Arial,sans-serif;
  font-size: 23px;
}

.contact-options {
  display: grid;
}

.contact-options a {
  display: flex;
  justify-content: space-between;
}

.projects-main {
  min-height: calc(100svh - 190px);
  padding: 85px 0;
}

.projects-main p {
  max-width: 470px;
  line-height: 1.8;
  color: var(--muted);
}

@media(max-width:430px) {
  nav {
    gap: 10px;
    font-size: 10px;
  }

  .languages {
    padding-left: 6px;
  }

  .languages button {
    padding: 5px;
  }
}

h1 > span, h1 > [data-copy], .intro, .eyebrow, .bottom, .bottom strong, .art-note, .languages button, .projects-main p {
  color: var(--ink);
}

dialog {
  position: fixed;
  overflow: visible;
  width: calc(100% - 40px);
  max-width: 440px;
  padding: 38px 30px 25px;
  border: 1px solid #bfcac0;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 25px 100px #17221826;
}

dialog::backdrop {
  background: #26372a38;
  backdrop-filter: blur(10px);
}

dialog[open] {
  animation: contact-arrive .22s ease-out;
}

.contact-kicker {
  font-size: 9px;
  letter-spacing: 2.5px;
  margin: 0 0 25px;
  color: var(--ink);
}

dialog h2 {
  max-width: 300px;
  line-height: 1.4;
  margin: 0 0 24px;
  letter-spacing: -.6px;
}

.contact-options {
  gap: 0;
  margin: 0;
}

.contact-options a {
  border: 0;
  border-top: 1px solid #c4cec4;
  border-radius: 0;
  padding: 19px 2px;
  font-size: 16px;
  align-items: center;
  transition: padding .18s,background .18s;
}

.contact-options a span {
  display: grid;
  place-items: center;
  border: 1px solid #a8b8a2;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 19px;
  transition: transform .18s;
}

.contact-options a:hover {
  padding-left: 12px;
  padding-right: 12px;
  background: #dce6d7;
}

.contact-options a:hover span {
  transform: rotate(45deg);
}

dialog .close {
  position: absolute;
  top: 19px;
  right: 19px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #b8c3b8;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  transition: background .18s,transform .18s;
}

dialog .close:hover {
  background: #d5dfd2;
  transform: rotate(90deg);
}

@keyframes contact-arrive {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media(prefers-reduced-motion:reduce) {
  dialog[open] {
    animation: none;
  }

  .contact-options a, .contact-options a span, dialog .close {
    transition: none;
  }
}

.about-main {
  padding: 45px 0 35px;
  min-height: calc(100svh - 165px);
}

.about-main h1 {
  font-size: clamp(34px,4vw,56px);
  margin: 0 0 35px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
}

.about-main p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 18px;
}

.about-intro .about-lead {
  font-size: 21px;
  line-height: 1.55;
}

.about-main h2 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 20px;
}

.about-offer article {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 13px;
  border-top: 1px solid var(--line);
  padding: 15px 0 0;
}

.about-number {
  font-size: 10px;
  padding-top: 4px;
}

.about-main h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 6px;
}

.about-offer p {
  font-size: 13px;
}

.about-process {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

.about-process p {
  margin: 0;
}

a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

@media(max-width:760px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-process {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .about-main {
    padding-top: 35px;
  }

  .about-intro .about-lead {
    font-size: 19px;
  }
}

.ring-0 {
  --r: 0deg;
}

.ring-1 {
  --r: 15deg;
}

.ring-2 {
  --r: 30deg;
}

.ring-3 {
  --r: 45deg;
}

.ring-4 {
  --r: 60deg;
}

.ring-5 {
  --r: 75deg;
}

.ring-6 {
  --r: 90deg;
}

.ring-7 {
  --r: 105deg;
}

.ring-8 {
  --r: 120deg;
}

.ring-9 {
  --r: 135deg;
}

.ring-10 {
  --r: 150deg;
}

.ring-11 {
  --r: 165deg;
}

body {
  min-height: 100svh;
}

.shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.hero {
  min-height: calc(100svh - 166px);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

nav a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.languages button {
  min-width: 30px;
  min-height: 32px;
}

.bottom {
  margin-top: auto;
}

html.dialog-open {
  overflow: hidden;
}

@media(max-width:760px) {
  header {
    height: auto;
    min-height: 82px;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .hero {
    min-height: 0;
    padding: 36px 0 25px;
    gap: 26px;
  }

  .art {
    width: 83%;
    max-width: 340px;
  }

  .art-note {
    font-size: 7px;
    letter-spacing: .7px;
  }

  .about-main {
    min-height: 0;
  }

  .projects-main {
    min-height: 0;
  }
}

@media(max-width:360px) {
  .shell {
    padding: 0 5vw;
  }

  .mark {
    font-size: 27px;
  }

  .languages button {
    min-width: 25px;
    padding: 4px;
  }

  .languages {
    padding-left: 4px;
  }

  h1 {
    font-size: 32px;
  }
}

nav {
  gap: 44px;
}

nav > a:hover, nav > a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

@media(max-width:760px) {
  nav {
    gap: 18px;
  }
}

@media(max-width:400px) {
  nav {
    gap: 12px;
  }
}

@media(max-width:360px) {
  nav {
    gap: 10px;
  }
}

.orbital {
  z-index: 1;
  background: var(--paper);
  border-radius: 50%;
}

.satellite-guide {
  position: absolute;
  left: 4%;
  top: 27%;
  width: 92%;
  height: 46%;
  border: 1px solid #a8b59a;
  border-radius: 50%;
  transform: rotate(-23deg);
  z-index: 0;
  opacity: .65;
}

.satellite-track {
  position: absolute;
  inset: 0;
  transform: rotate(-23deg);
  animation: satellite-depth 14s linear infinite;
  pointer-events: none;
}

.satellite {
  position: absolute;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  offset-path: ellipse(46% 23% at 50% 50%);
  offset-rotate: 0deg;
  animation: satellite-lap 14s linear infinite;
  background: radial-gradient(circle at 32% 25%,#e4ffb2,#b8e76b 45%,#748f4f);
  box-shadow: 4px 8px 18px #4c5b3320;
}

@keyframes satellite-lap {
  from {
    offset-distance: 0%;
  }

  to {
    offset-distance: 100%;
  }
}

@keyframes satellite-depth {
  0%, 49.999% {
    z-index: 3;
  }

  50%, 100% {
    z-index: 0;
  }
}

@media(prefers-reduced-motion:reduce) {
  .satellite-track, .satellite {
    animation: none;
  }

  .satellite-track {
    z-index: 3;
  }
}

@media(min-width:761px) {
  .hero {
    padding-top: 0;
    padding-bottom: 120px;
  }
}
