/* The dealt palette and type (start.mjs css --page service --palette stone-blueprint --type onest), kept as printed. */
:root {
  --p-bg: #dfdedb; --p-surface: #d3d2ce; --p-ink: #26251e; --p-muted: #5a5850;
  --p-accent: #2456d6; --p-accent-ink: #ffffff; --p-action: #2456d6; --p-action-ink: #ffffff;
  --p-inv-bg: #26251e; --p-inv-surface: #313029; --p-inv-ink: #dfdedb; --p-inv-muted: #9e9d99;
  --p-inv-accent: #dfdedb; --p-inv-accent-ink: #26251e; --p-inv-action: #dfdedb; --p-inv-action-ink: #26251e;
  --font-display: "Onest", system-ui, sans-serif;
  --font-text: "Onest", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.04em;
}

/* Page CSS: only what sits inside a visual, plus one --p-h per card group. */

/* hero: the platform diagram fills the split's right frame */
.hero__media--diagram { display: grid; place-items: center; padding: var(--s-6); }
.hero__media--diagram .dg { width: 100%; max-width: 600px; }

/* services: the audit's Terraform merge request */
#services .panel { --p-h: 520px; }
@media (max-width: 1023px) { #services .panel { --p-h: 420px; } }
@media (max-width: 639px) { #services .panel { --p-h: 520px; } }

/* work and home-lab cards: real tool icons on the card's panel */
#work .panel { --p-h: 240px; }
#lab .panel { --p-h: 320px; }
@media (max-width: 639px) { #work .panel { --p-h: 150px; } #lab .panel { --p-h: 260px; } }
.work__icons { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-5); }
.work__fig { font-family: var(--font-display); font-size: var(--t-h3); letter-spacing: -0.02em; color: var(--p-ink); text-align: center; }
.work__row, .menu-card__icons { display: flex; align-items: center; justify-content: center; gap: var(--s-4); }
.menu-card__icons { --p-h: 120px; }

/* about: the tools as a row of icon tiles under the text */
.tools { display: grid; grid-template-columns: repeat(6, 48px); gap: var(--s-3); margin-top: var(--s-7); }
@media (max-width: 639px) { .tools { grid-template-columns: repeat(6, minmax(0, 48px)); gap: var(--s-2); } }

/* photo slots: a monogram until the photographs exist (see the CLIENT FILE comments in index.html) */
.portrait { height: min(640px, 100%); min-height: 520px; margin: 0; }
.photo-slot { display: grid; place-items: center; width: 100%; height: 100%; background: var(--p-surface); color: var(--p-muted); }
.photo-slot > span { font-family: var(--font-display); font-size: clamp(48px, 6vw, 96px); letter-spacing: -0.04em; }
.avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; margin-bottom: var(--s-5); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar .photo-slot { background: var(--p-inv-surface); color: var(--p-inv-muted); }
.avatar .photo-slot > span { font-size: 22px; letter-spacing: 0; }
@media (max-width: 1023px) { .portrait { margin-top: var(--s-7); max-height: 520px; } }
.services__more { margin-top: var(--s-5); }
