/* Shared styles: base, components, responsive layouts and reduced motion. */
@import url('assets/fonts.css');

:root {
  --bg: #070d0e;
  --fg: #f5f7f5;
  --muted: #b7c7c1;
  --green: #87dbb7;
  --line: #2a3c38;
  font-family: 'IBM Plex Mono',monospace;
  color: var(--fg);
  background: var(--bg);
  font-synthesis: none;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

button {
  font: inherit;
  cursor: pointer;
}

a:focus-visible,button:focus-visible,summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}

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

header {
  max-width: 1440px;
  margin: auto;
  padding: 16px 6%;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  flex-shrink: 0;
}

.logo {
  width: 96px;
  height: 96px;
  overflow: visible;
  display: block;
  position: relative;
  isolation: isolate;
  background: none;
  border-radius: 0;
}

.logo img {
  width: 284px;
  max-width: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  animation: logo-spin 45s linear infinite;
  pointer-events: none;
}

@keyframes logo-spin {
  from {
    transform: translate(-50%,-50%) rotate(0deg);
  }

  to {
    transform: translate(-50%,-50%) rotate(360deg);
  }
}

nav {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  font-size: .875rem;
}

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

nav[hidden] {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font-size: .875rem;
}

.menu-toggle span:first-child {
  font-size: 1.5rem;
  line-height: 1;
  width: 24px;
}

.hero {
  max-width: 1440px;
  margin: auto;
  padding: 90px 6% 100px;
}

.hero-text {
  max-width: 1120px;
}

.eyebrow {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--green);
  margin: 0 0 26px;
}

h1 {
  font-size: clamp(2rem,5.7vw,5.2rem);
  line-height: 1.15;
  letter-spacing: -.06em;
  font-weight: 500;
  margin: 0;
  overflow-wrap: anywhere;
}

h1 em {
  font-style: normal;
  color: var(--green);
}

.intro {
  font-size: 1rem;
  line-height: 1.85;
  max-width: 650px;
  color: #c5d1cd;
  margin: 30px 0;
}

.button {
  display: inline-block;
  background: var(--green);
  color: #07261b;
  font-weight: 500;
  padding: 17px 24px;
  font-size: .875rem;
  min-height: 48px;
}

.section {
  padding: 90px 6%;
  max-width: 1440px;
  margin: auto;
  scroll-margin-top: 24px;
}

h2 {
  font-size: clamp(1.75rem,3.25vw,3.2rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.055em;
  margin: 0 0 25px;
  overflow-wrap: anywhere;
}

.section-head>p:last-child {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.services {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.2fr);
  gap: 60px;
  border-top: 1px solid var(--line);
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.number {
  font-size: .875rem;
  color: var(--green);
}

h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.plus {
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--green);
}

details[open] .plus {
  transform: rotate(45deg);
}

.detail {
  padding: 0 0 30px 38px;
  line-height: 1.8;
  color: var(--muted);
}

.detail p {
  margin-top: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-size: .875rem;
  color: #d9e7e0;
}

.team {
  background: #101b19;
}

.people {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 28px;
  margin-top: 38px;
}

.portrait {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #081b15;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  display: block;
}

.brand-portrait img {
  object-fit: contain;
}

.person-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 12px;
}

.people article>p {
  color: var(--muted);
  font-size: .875rem;
  margin-top: 7px;
  margin-bottom: 18px;
}

.network {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 25px;
  border-bottom: 1px solid var(--line);
}

.network .eyebrow {
  margin: 0;
}

.network-logo {
  display: block;
  width: 100%;
  max-width: 360px;
}

.network-logo img {
  display: block;
  width: 100%;
}

.careers {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
  gap: 70px;
}

.careers p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.jobs a {
  display: block;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.jobs a:last-child {
  border-bottom: 1px solid var(--line);
}

small {
  display: block;
  color: var(--muted);
  font-size: .875rem;
  margin-top: 12px;
}

.contact {
  background: var(--green);
  color: #0b3023;
}

.contact .eyebrow {
  color: #22573f;
}

.contact h2 {
  max-width: 32ch;
  text-wrap: balance;
}

.contact a:focus-visible {
  outline-color: #0b3023;
}

.contact-bottom {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-top: 0;
}

.contact-bottom p {
  margin: 0;
  max-width: 650px;
  font-size: 1rem;
  line-height: 1.8;
}

.email {
  display: inline-block;
  font-size: 1.125rem;
  line-height: 1.5;
  border-bottom: 1px solid;
  padding-bottom: 8px;
  overflow-wrap: anywhere;
}

.phone {
  display: block;
  padding: 12px 0;
  margin-top: 10px;
}

footer {
  max-width: 1440px;
  margin: auto;
  padding: 32px 6%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  font-size: .875rem;
  color: var(--muted);
}

footer a,.text-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.text-button {
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.skip {
  position: fixed;
  top: -100px;
  left: 15px;
  padding: 15px;
  background: var(--green);
  color: #000;
  z-index: 20;
}

.skip:focus {
  top: 10px;
}

.document {
  max-width: 1000px;
  padding-top: 55px;
}

.document h1 {
  font-size: clamp(2rem,5vw,4rem);
}

.document h2 {
  font-size: clamp(1.5rem,3vw,2rem);
}

.document section {
  margin-top: 52px;
}

.document p,.document li {
  line-height: 1.85;
  color: var(--muted);
}

.document .eyebrow {
  color: var(--green);
}

.document ul {
  padding-left: 24px;
}

.document li+li {
  margin-top: 14px;
}

.document p a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.document code {
  overflow-wrap: anywhere;
}

.back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: 28px;
  font-size: .875rem;
  color: var(--green);
  text-decoration: underline;
}

.job-apply {
  border-top: 1px solid var(--line);
  padding-top: 38px;
}

.cookie-notice {
  border-top: 1px solid #59766b;
  background: #12251e;
  color: var(--fg);
  padding: 16px max(6%,calc((100vw - 1268px)/2));
  display: flex;
  gap: 20px;
  align-items: center;
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 65vh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px #0004;
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice h2 {
  font-size: 1rem;
  letter-spacing: 0;
  margin: 0 0 5px;
}

.cookie-notice p {
  font-size: .875rem;
  line-height: 1.5;
  margin: 0 0 6px;
  max-width: 650px;
}

.cookie-notice a {
  font-size: .875rem;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
  max-width: 280px;
}

.cookie-actions button {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--green);
  color: var(--fg);
  font-size: .875rem;
}

.cookie-actions button:hover {
  background: #244c3c;
}

.logo::before {
  content: '';
  position: absolute;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background: url('assets/logo-mist.png') 60% center/auto 100% no-repeat;
  -webkit-mask-image: radial-gradient(ellipse at center,#000 25%,transparent 72%);
  mask-image: radial-gradient(ellipse at center,#000 25%,transparent 72%);
}

.people article {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.people article .portrait {
  flex-shrink: 0;
}

.linkedin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  margin-top: auto;
  align-self: flex-start;
}

.linkedin-link img {
  width: 32px;
  height: 32px;
  display: block;
}

.linkedin-link:hover {
  opacity: .8;
}

@media(min-width:1500px) {
  body {
    border-inline: 1px solid var(--line);
    max-width: 1440px;
    margin: auto;
  }
}

@media(max-width:1000px) {
  .services,.careers {
    gap: 32px;
  }

  .people {
    gap: 20px;
  }

  .contact-bottom {
    flex-direction: column;
    align-items: start;
  }
}

@media(max-width:700px) {
  header {
    padding: 12px 5%;
    gap: 14px;
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .logo img {
    width: 250px;
  }

  nav {
    justify-content: flex-end;
    gap: 0 18px;
    max-width: 320px;
    min-width: 0;
    flex: 1;
  }

  nav a {
    font-size: .875rem;
    overflow-wrap: anywhere;
  }

  .hero {
    padding: 52px 6% 60px;
  }

  .section {
    padding: 60px 6%;
  }

  .services,.careers {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .people {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 260px;
    margin: 30px auto 0;
  }

  .portrait {
    aspect-ratio: 4/5;
  }

  .network {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .network-logo {
    max-width: 360px;
  }

  .intro {
    margin: 24px 0;
  }

  .detail {
    padding-left: 0;
  }

  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 6%;
    gap: 12px;
  }

  .cookie-actions {
    max-width: none;
  }

  .cookie-actions button {
    width: auto;
    flex: 1;
  }

  .document {
    padding-top: 32px;
  }
}

@media(max-width:380px) {
  header {
    gap: 10px;
  }

  nav {
    column-gap: 12px;
    max-width: 190px;
  }

  .logo {
    width: 76px;
    height: 76px;
  }

  .logo img {
    width: 230px;
  }

  .eyebrow {
    font-size: .75rem;
  }

  h1 {
    font-size: 1.95rem;
  }

  summary {
    gap: 10px;
  }

  summary h3 {
    font-size: 1rem;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-actions button {
    width: 100%;
  }
}

@media(max-width:800px) {
  header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  header nav {
    flex: 0 0 100%;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  header nav a {
    padding: 8px 0;
  }
}
@media(prefers-reduced-motion:reduce) {
  :root {
    scroll-behavior: auto;
  }

  .logo img {
    animation: none;
  }
}
