/* Atlas's showcase page: Atlas's own look -- parchment, ink and brass, Cinzel and Vollkorn. */
:root {
  --bg: #e3d5ac;
  --surface: #f2e8cc;
  --surface-deep: #e8dbb4;
  --ink: #2e2417;
  --ink-faded: #6e5d3e;
  --brass: #8c6a2f;
  --brass-strong: #6f521f;
  --line: #d3bd85;
  --on-brass: #fbf5e4;
  --shadow: 0 18px 40px rgba(46, 36, 23, 0.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1610;
    --surface: #262017;
    --surface-deep: #2f281d;
    --ink: #efe3c4;
    --ink-faded: #b9a77f;
    --brass: #c9a25a;
    --brass-strong: #ddb86e;
    --line: #4a3d28;
    --on-brass: #1b1610;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1610;
  --surface: #262017;
  --surface-deep: #2f281d;
  --ink: #efe3c4;
  --ink-faded: #b9a77f;
  --brass: #c9a25a;
  --brass-strong: #ddb86e;
  --line: #4a3d28;
  --on-brass: #1b1610;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Vollkorn", Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--brass-strong);
}
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.85em;
  background: var(--surface-deep);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}
h1,
h2,
h3,
.brand {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.2rem;
}
.top-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-links a:not(.btn) {
  color: var(--ink-faded);
  text-decoration: none;
}
.top-links a:not(.btn):hover {
  color: var(--ink);
}

/* buttons */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
  padding: 0.7em 1.4em;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid var(--ink);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  background: var(--brass-strong);
  border-color: var(--brass-strong);
  color: var(--on-brass);
}
.btn-small {
  padding: 0.4em 1em;
  font-size: 0.9rem;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--brass);
}

/* hero */
.hero {
  padding-top: 64px;
  text-align: center;
}
.eyebrow {
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  margin: 0;
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 5.5rem);
  margin: 0.15em 0 0.2em;
}
.lead {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--ink-faded);
}
.lead strong {
  color: var(--ink);
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.note {
  color: var(--ink-faded);
  font-size: 0.9rem;
  font-style: italic;
}
.hero-shot {
  margin: 40px 0 0;
}
.hero-shot img,
.gallery img {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* numbers */
.numbers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.numbers div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.numbers strong {
  display: block;
  font-family: "Cinzel", Georgia, serif;
  font-size: 2rem;
  color: var(--brass-strong);
}
.numbers span {
  font-size: 0.9rem;
  color: var(--ink-faded);
}

/* sections */
.section {
  padding-top: 80px;
}
.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 0.3em;
}
.section-lead {
  color: var(--ink-faded);
  max-width: 760px;
  margin-top: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
}
.card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5em;
  color: var(--brass-strong);
}
.card p {
  margin: 0;
  font-size: 1rem;
}

/* pipeline diagram */
.diagram {
  margin: 24px 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  overflow-x: auto;
}
.diagram svg {
  width: 100%;
  min-width: 640px;
  height: auto;
  display: block;
}
.node rect {
  fill: var(--surface-deep);
  stroke: var(--line);
  stroke-width: 1.5;
}
.node-accent rect {
  fill: var(--brass);
  stroke: var(--brass-strong);
}
.node text {
  fill: var(--ink);
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
  font-size: 15px;
  text-anchor: middle;
}
.node text.sub {
  font-family: "Vollkorn", Georgia, serif;
  font-weight: 400;
  font-size: 12.5px;
  fill: var(--ink-faded);
}
.node-accent text,
.node-accent text.sub {
  fill: var(--on-brass);
}
.edges path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.8;
}
.arrow-head {
  fill: var(--brass);
}

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 24px;
}
.gallery figure {
  margin: 0;
}
.gallery figcaption {
  margin-top: 10px;
  color: var(--ink-faded);
  font-size: 0.95rem;
}
.gallery figcaption strong {
  color: var(--ink);
}
.gallery .phone {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery .phone img {
  max-height: 520px;
  width: auto;
}

.contact p {
  font-size: 1.1rem;
}
.foot {
  margin-top: 80px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-faded);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .numbers {
    grid-template-columns: repeat(2, 1fr);
  }
  .numbers div:last-child {
    grid-column: span 2;
  }
  .cards,
  .gallery {
    grid-template-columns: 1fr;
  }
  .top-links a:not(.btn) {
    display: none;
  }
  body {
    font-size: 17px;
  }
}

/* Language menu */
.lang-menu {
  position: relative;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35em 0.75em 0.35em 0.6em;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lang-toggle svg {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lang-toggle:hover,
.lang-menu.open .lang-toggle {
  border-color: var(--brass);
  background: var(--surface);
}
.lang-caret {
  transition: transform 0.2s ease;
}
.lang-menu.open .lang-caret {
  transform: rotate(180deg);
}
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 20;
  animation: lang-in 0.16s ease;
}
.lang-list[hidden] {
  display: none;
}
@keyframes lang-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.lang-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  padding: 0.5em 0.7em;
  cursor: pointer;
}
.lang-list button small {
  color: var(--ink-faded);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.lang-list button:hover,
.lang-list button:focus-visible {
  background: var(--surface-deep);
  outline: none;
}
.lang-list button[aria-checked="true"] {
  color: var(--brass-strong);
  font-weight: 600;
}
.lang-list button[aria-checked="true"] small::before {
  content: "✓ ";
  color: var(--brass);
}
