/*
  Look of every page of the Attenus particle site below (and around) the dotted stage.
  What it does: styles the top bar and its drop-down menus, turns the dotted stage into
  a full-screen opener on the home page and a banner on inside pages, and styles the
  wording underneath: large white headlines on near-black, thin lines, and Attenus
  Green for anything you can act on.
  How to use it: load after style.css (it reuses the colours and typeface set there).
  Depends on: the markup written by build-site.mjs, and pages.js for the "rise" reveal
  and for closing the menus.
*/

body.inside { height: auto; min-height: 100%; overflow-x: hidden; line-height: 1.55; }
html:has(body.inside) { height: auto; scroll-behavior: smooth; scroll-padding-top: 90px; }

.wrap { width: min(1240px, 88vw); margin-inline: auto; }
.nowrap { white-space: nowrap; }

/* "Skip to content": hidden until a keyboard user tabs to it. */
.skip { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--white); color: var(--night); padding: 12px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* Top bar: mark, the menus, phone, Contact and the quote button. It floats over the stage. */
.bar { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(14px, 2.4vw, 28px) max(6vw, calc((100vw - 1240px) / 2)); }
.bar .mark { align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; font-size: 14px; }
.menu { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); font-size: 14px; letter-spacing: .04em; }
.menu > a, .menu summary { color: var(--dim); text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; white-space: nowrap; cursor: pointer; }
.menu > a:hover, .menu summary:hover, .menu details[open] summary { color: var(--white); }
.menu details.here summary { color: var(--attenus-green); border-color: var(--attenus-green); }
.menu details { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::marker, .faq-list summary::marker { content: ""; }
.menu summary::after { content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.menu details[open] summary::after { transform: translateY(1px) rotate(225deg); }
/* The panel that drops down under a menu name. */
.drop { position: absolute; top: calc(100% + 10px); left: -20px; min-width: 270px; display: grid; padding: 10px; background: rgba(10, 16, 13, .96); border: 1px solid rgba(246, 248, 245, .16); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); backdrop-filter: blur(10px); }
.drop a { padding: 11px 14px; border-radius: 8px; color: var(--white); text-decoration: none; font-size: 15px; white-space: nowrap; }
.drop a:hover, .drop a:focus-visible { background: rgba(88, 214, 141, .14); color: var(--attenus-green); }
.drop a[aria-current] { color: var(--attenus-green); }
.contact a[aria-current] { color: var(--attenus-green); }

/* Home page: the dots fill the first screen, and the page scrolls on beneath them. */
.stage.home { position: relative; inset: auto; height: 100vh; height: 100svh; touch-action: pan-y; border-bottom: 1px solid rgba(246, 248, 245, .12); }
/* Inside pages: the same dots as a banner that spells the page's name. */
.stage.banner { position: relative; inset: auto; height: clamp(330px, 60vh, 620px); touch-action: pan-y; border-bottom: 1px solid rgba(246, 248, 245, .12); }

.eyebrow { margin: 0 0 22px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--attenus-green); }
.eyebrow a { color: var(--dim); text-decoration: none; }
.eyebrow a:hover { color: var(--white); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.4vw, 80px); max-width: 20ch; }
h2 { font-size: clamp(30px, 4.2vw, 60px); max-width: 20ch; }
h3 { font-size: clamp(21px, 2vw, 28px); }
.lead { margin: 26px 0 0; max-width: 60ch; font-size: clamp(17px, 1.5vw, 21px); color: var(--dim); }
main p a, address a { color: var(--attenus-green); }

main > section { padding-block: clamp(60px, 9vw, 124px); border-top: 1px solid rgba(246, 248, 245, .12); }
main > section.intro { padding-top: clamp(48px, 7vw, 96px); border-top: 0; }

/* Action links: green text with an arrow; the solid version is a filled green button. */
.go { display: inline-flex; align-items: center; gap: 14px; padding: 14px 0; color: var(--attenus-green); text-decoration: none; font-size: 17px; font-weight: 600; border-bottom: 1px solid currentColor; }
.go b { font-weight: 400; transition: transform .25s; }
.go:hover b, .way:hover b, .rows a:hover b { transform: translate(4px, -4px); }
.go.solid { padding: 16px 28px; border: 0; border-radius: 999px; background: var(--attenus-green); color: var(--night); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; margin: 36px 0 0; }

/* Scope: the headline on the left, and the list drawn as a cable run on the right,
   a green line with a connection point at every item. */
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.run { list-style: none; margin: 6px 0 0; padding: 0 0 0 30px; border-left: 1px solid rgba(88, 214, 141, .45); }
.run li { position: relative; padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(246, 248, 245, .08); }
.run li:last-child { border-bottom: 0; }
.run li::before { content: ""; position: absolute; left: -35px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; background: var(--attenus-green); box-shadow: 0 0 12px 2px rgba(88, 214, 141, .5); }

/* "Where it fits" and the home page's three habits: short headed notes in a grid. */
.fits dl { margin: clamp(32px, 5vw, 60px) 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(26px, 4vw, 56px) clamp(28px, 6vw, 96px); }
.fits dl div { padding-top: 22px; border-top: 1px solid rgba(88, 214, 141, .45); }
.fits dt { font-size: clamp(20px, 1.9vw, 26px); font-weight: 800; letter-spacing: -.01em; }
.fits dd { margin: 12px 0 0; color: var(--dim); font-size: 17px; max-width: 46ch; }

/* The home page's five short chapters. */
.story { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(36px, 5vw, 72px) clamp(28px, 6vw, 96px); }
.story h2 { font-size: clamp(26px, 3vw, 42px); }
.story p { margin: 14px 0 0; color: var(--dim); font-size: 18px; max-width: 44ch; }

/* How a job runs: three steps side by side. */
.steps { margin-top: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.steps div { padding-top: 22px; border-top: 1px solid rgba(88, 214, 141, .45); }
.steps p { margin: 12px 0 0; color: var(--dim); font-size: 17px; }

/* What customers say. */
.voices ul { list-style: none; margin: clamp(32px, 5vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.voices li { padding: 28px; border: 1px solid rgba(246, 248, 245, .14); border-radius: 18px; background: rgba(246, 248, 245, .03); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.voices blockquote { margin: 0; }
.voices blockquote p { margin: 0; font-size: 17px; line-height: 1.6; }
.voices .who { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--attenus-green); }

/* What you can count on. */
.assurance ul { list-style: none; margin: clamp(32px, 5vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.assurance li { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid rgba(88, 214, 141, .45); }
.assurance strong { font-size: clamp(24px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.assurance span { color: var(--dim); font-size: 17px; }

/* Questions: each one opens to show its answer. */
.faq-list { margin-top: clamp(28px, 4vw, 52px); border-top: 1px solid rgba(246, 248, 245, .12); }
.faq-list details { border-bottom: 1px solid rgba(246, 248, 245, .12); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; cursor: pointer; transition: color .25s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 300; color: var(--attenus-green); transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--attenus-green); }
.faq-list details p { margin: 0 0 24px; max-width: 70ch; color: var(--dim); font-size: 17px; }

/* Linked rows (services, buyers, related pages): a name, one line about it, an arrow. */
.rows { list-style: none; margin: clamp(28px, 4vw, 52px) 0 0; padding: 0; border-top: 1px solid rgba(246, 248, 245, .12); }
.rows a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 30px; align-items: baseline; gap: 14px 40px; padding: 24px 0; border-bottom: 1px solid rgba(246, 248, 245, .12); color: var(--white); text-decoration: none; transition: color .25s; }
.rows a:hover { color: var(--attenus-green); }
.rows strong { font-size: clamp(20px, 2.1vw, 28px); font-weight: 800; letter-spacing: -.01em; }
.rows a > span { color: var(--dim); font-size: 16px; }
.rows b { font-weight: 400; font-size: 22px; color: var(--attenus-green); transition: transform .25s; }

/* Partners: each company's logo on a light plate (so its own colours stay true on the
   dark page), its role underneath, the whole card a link to its website. The grid
   adds cards and rows by itself as partners are added. */
.partners ul { list-style: none; margin: clamp(28px, 4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.partners a { position: relative; display: grid; gap: 14px; padding: 16px 16px 18px; border: 1px solid rgba(246, 248, 245, .14); border-radius: 18px; color: var(--white); text-decoration: none; transition: border-color .25s, color .25s; }
.partners a:hover, .partners a:focus-visible { border-color: var(--attenus-green); color: var(--attenus-green); }
.plate { display: grid; place-items: center; height: 110px; padding: 20px 26px; border-radius: 12px; background: #f6f8f5; }
.plate img { display: block; max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.role { padding-right: 30px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.partners b { position: absolute; right: 18px; bottom: 16px; font-weight: 400; font-size: 18px; color: var(--attenus-green); transition: transform .25s; }
.partners a:hover b { transform: translate(3px, -3px); }

/* Contact page: three large rows, each one a link. */
.way { display: grid; grid-template-columns: 1fr 40px; align-items: baseline; gap: 6px 20px; padding: clamp(20px, 2.6vw, 34px) 0; border-bottom: 1px solid rgba(246, 248, 245, .12); color: var(--white); text-decoration: none; transition: color .25s; }
.ways .lead { margin-bottom: clamp(20px, 3vw, 40px); }
.way:hover { color: var(--attenus-green); }
.way .label { grid-column: 1 / -1; font-size: 15px; color: var(--dim); }
.way strong { font-size: clamp(24px, 4vw, 52px); font-weight: 800; letter-spacing: -.02em; }
.way b { font-weight: 400; font-size: 26px; color: var(--attenus-green); transition: transform .25s; }

/* The administrative office beside its drawn map. */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.where p:not(.lead) { margin: 22px 0 0; color: var(--dim); }
.where address { margin-top: 22px; font-style: normal; font-size: 18px; line-height: 1.6; }
.map img { display: block; width: 100%; height: auto; border-radius: 18px; }

/* Long reading text (the privacy policy). */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 34px); margin-top: 52px; max-width: none; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: rgba(246, 248, 245, .78); font-size: 17px; }
.prose strong { color: var(--white); }

main > section.closing { background: radial-gradient(900px 420px at 18% 100%, rgba(88, 214, 141, .13), transparent 70%); }

.foot { border-top: 1px solid rgba(246, 248, 245, .12); padding: 52px 0 36px; font-size: 14px; color: var(--dim); }
.foot-line { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--white); font-size: 16px; letter-spacing: .26em; text-transform: uppercase; }
.foot-about { margin: 16px 0 0; max-width: 60ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 30px 0; padding: 26px 0; border-block: 1px solid rgba(246, 248, 245, .12); }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { color: var(--attenus-green); }
.foot-contact { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }

/* "Rise": wording drifts up into place as it scrolls into view. Only switched on when
   pages.js is running (it adds the "js" class), so the text is never hidden without it. */
.js .rise { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; transform: none; transition: none; } }

@media (max-width: 860px) {
  .bar { flex-wrap: wrap; row-gap: 4px; }
  .bar .contact a:first-child { display: none; }
  .menu { order: 3; width: 100%; gap: 20px; font-size: 13px; }
  .menu details { position: static; }
  .drop { left: 5vw; right: 5vw; top: 100%; min-width: 0; }
  .stage.banner { height: clamp(300px, 52vh, 460px); }
  .scope, .where, .fits dl, .story, .steps, .voices ul, .assurance ul { grid-template-columns: 1fr; }
  .rows a { grid-template-columns: 1fr 26px; gap: 6px 14px; }
  .rows a > span { grid-column: 1; grid-row: 2; }
  .rows b { grid-row: 1; grid-column: 2; }
}
