/* ---------------------------------------------
   Aduasth Technologies — base styles
   Quiet, serious, minimal. Charcoal + warm cream.
--------------------------------------------- */

:root {
  --bg: #1D1D1D;
  --bg-raised: #212120;
  --text: #F3EFE8;
  --text-muted: #AAA49C;
  --border: rgba(243, 239, 232, 0.12);
  --border-strong: rgba(243, 239, 232, 0.22);

  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1240px;
  --content-width: 680px;

  --space-section: clamp(80px, 12vw, 160px);
  --space-section-sm: clamp(56px, 8vw, 100px);

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.005em;
}

p { margin: 0; }

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

ol, ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 900px) {
  .wrap { padding: 0 56px; }
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s var(--ease);
}

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

/* ---------- Focus states ---------- */

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Eyebrow / small labels ---------- */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 20px;
}

/* ---------- Text link with arrow ---------- */

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--text), var(--text));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.3s var(--ease), opacity 0.3s var(--ease), gap 0.25s var(--ease);
}

.text-link:hover,
.text-link:focus-visible {
  gap: 12px;
}

.text-link span {
  transition: transform 0.25s var(--ease);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(29, 29, 29, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-height: 76px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.logo-mark {
  height: 24px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 36px);
}

.site-nav a {
  position: relative;
  font-size: clamp(13px, 3.2vw, 15px);
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 0;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

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

/* ---------- Hero ---------- */

.hero {
  padding: clamp(96px, 18vh, 180px) 0 var(--space-section-sm);
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.hero .wrap { width: 100%; }

.hero-headline {
  font-size: clamp(40px, 6.4vw, 80px);
  max-width: 19ch;
  margin-bottom: 32px;
}

.hero-copy {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* ---------- Section rhythm ---------- */

section {
  padding: var(--space-section) 0;
}

section + section {
  border-top: 1px solid var(--border);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
  }
}

.about-content h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  max-width: 16ch;
  margin-bottom: 28px;
}

.about-content p {
  max-width: var(--content-width);
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-content p + p {
  margin-top: 20px;
}

.about-content p:last-child {
  color: var(--text);
}

/* ---------- Elseward / product ---------- */

.elseward-panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(40px, 6vw, 80px);
}

.elseward-logo {
  height: clamp(36px, 6vw, 64px);
  width: auto;
  display: block;
  margin: 8px 0 20px;
}

.elseward-descriptor {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 32px;
}

.elseward-body {
  max-width: var(--content-width);
  margin-bottom: 40px;
}

.elseward-body p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

.elseward-body p + p {
  margin-top: 20px;
}

/* ---------- How we think ---------- */

.principles-heading {
  font-size: clamp(28px, 3.4vw, 42px);
  max-width: 22ch;
  margin-bottom: var(--space-section-sm);
}

.principles-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 800px) {
  .principles-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

.principle {
  border-top: 1px solid var(--border-strong);
  padding-top: 28px;
}

.principle-index {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.principle h3 {
  font-size: 23px;
  margin-bottom: 14px;
  max-width: 20ch;
}

.principle p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 38ch;
}

/* ---------- Contact ---------- */

.contact h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  max-width: 18ch;
  margin-bottom: 12px;
}

.contact-country {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 48px;
}

.contact-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 6px;
  transition: border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.contact-email:hover,
.contact-email:focus-visible {
  border-color: var(--text);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.footer-logo-mark {
  height: 17px;
  width: auto;
  display: block;
}

.footer-logo .logo-text {
  font-size: 13px;
}

.footer-legal,
.footer-copyright {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-legal { margin-bottom: 4px; }

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .text-link, .text-link span, .site-nav a::after {
    transition: none;
  }
}

/* ---------- Simple legal pages ---------- */

.legal-page {
  padding: var(--space-section-sm) 0 var(--space-section);
}

.legal-page .wrap {
  max-width: 760px;
}

.legal-page h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 12px;
}

.legal-page .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 24px;
  margin-top: 44px;
  margin-bottom: 14px;
}

.legal-page p,
.legal-page li {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
}

.legal-page li {
  margin-left: 1.2em;
  list-style: disc;
}

.legal-page p + p,
.legal-page ul {
  margin-top: 14px;
}

.legal-page a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
}

.legal-page .back-link {
  display: inline-block;
  margin-bottom: 56px;
  color: var(--text-muted);
  font-size: 14px;
  border-bottom: 1px solid var(--border-strong);
}

.legal-page .back-link:hover {
  color: var(--text);
}
