/* Shared clay surfaces. Load after the page's layout styles. */
:root {
  --bg: #f7f5ef;
  --surface: #eeeee5;
  --surface-2: #fffdf8;
  --accent-soft: #e3efe7;
  --line: #d4dcd2;
  --radius: 16px;
  --clay-radius: 32px;
  --clay-face: linear-gradient(145deg, #fffefa, #f2f1e9);
  --clay-shadow: 9px 12px 26px #354c3e12, -5px -5px 18px #ffffffb3,
    inset 2px 2px 3px #ffffff, inset -3px -4px 7px #8f9d851c;
  --clay-small: 3px 5px 10px #354c3e16, inset 1px 2px 2px #ffffffd9,
    inset -2px -3px 4px #8f9d8524;
  --clay-inset: inset 3px 3px 7px #354c3e14, inset -3px -3px 7px #ffffffd9;
  --clay-teal: 0 5px 0 #004b43, 0 9px 16px #00564b25,
    inset 2px 2px 3px #ffffff38, inset -2px -3px 5px #003e4a40;
}

/* Tactile controls keep dark text on pale surfaces and clear focus rings. */
.button, .demo-button {
  border-radius: var(--radius);
  background: linear-gradient(145deg, #087c70, #006257);
  border: 1px solid #006257;
  color: #fffdf8;
  box-shadow: var(--clay-teal);
  font-weight: 600;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration), background var(--duration);
}
.button:hover, .demo-button:hover {
  background: linear-gradient(145deg, #087c70, #00594f);
  transform: translateY(-2px);
}
.button:active, .demo-button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #004b43, inset 2px 3px 6px #003e4a40;
}
.button:disabled { transform: none; }
.header-cta, .menu-toggle {
  background: var(--clay-face);
  border-color: #ffffff;
  color: var(--accent);
  box-shadow: var(--clay-small);
}
.header-cta:hover { background: var(--accent-soft); color: var(--accent); }
.site-header { border-bottom-color: #ffffff; box-shadow: 0 4px 18px #354c3e08; }
.site-header.is-scrolled { box-shadow: 0 5px 22px #354c3e14; }
.status-dot { box-shadow: 0 0 0 4px #006b6010; }
input, select, textarea {
  background-color: #f3f4ee;
  border-color: #b3c0b5;
  border-radius: 13px;
  box-shadow: var(--clay-inset);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline-offset: 3px;
  background-color: var(--surface-2);
}

/* The artwork sits inside a softly molded frame. */
.hero { background: radial-gradient(ellipse at 90% 35%, #dfede1a6, transparent 58%); }
.hero-visual, .service-summary {
  background: linear-gradient(145deg, #eff6ed, #dce9df);
  border: 1px solid #ffffff;
  border-radius: 40px;
  box-shadow: 14px 18px 35px #354c3e1a, -7px -7px 24px #ffffffa6,
    inset 3px 3px 4px #ffffff, inset -5px -6px 10px #82998730;
  padding: 26px;
}
.hero-visual::before, .hero-visual::after { display: none; }
.hero-visual { width: 100%; max-width: 560px; justify-self: center; }
.specimen-image, .robo-page .specimen-image, .service-summary::before {
  border-radius: 110px 110px 24px 24px;
  border-color: #ffffff;
}
/* The source artwork is composed on the right. Preserve its full height,
   then crop the empty left side instead of the hardware or robotic arm. */
.specimen-image { height: auto; aspect-ratio: 1; }
.hero-image, .robo-page .hero-image {
  position: absolute;
  inset: 0;
  object-position: right center;
}
.service-summary::before {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  align-self: center;
  background-position: right center;
  border-radius: 24px;
}
.club-feature > img {
  display: block;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  align-self: center;
  object-position: right center;
}
.robot-example img { height: auto; aspect-ratio: 4 / 3; }
.specimen-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 3px 4px 12px #354c3e1a;
  pointer-events: none;
}
.specimen-top > span:last-child {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--clay-face);
  box-shadow: var(--clay-small);
  flex-shrink: 0;
}
.capability-strip { background: #f0f2e9; border-color: #fff; }

/* Room between raised cards lets their silhouette and shadows read. */
.services-grid { gap: 24px; }
.service-card, .service-card:last-child {
  padding: 28px;
  border: 1px solid #ffffff;
  border-radius: var(--clay-radius);
  background: var(--clay-face);
  box-shadow: var(--clay-shadow);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration);
}
.service-card.featured { background: linear-gradient(145deg, #f1f8ef, #e2eee3); }
.service-card .card-link::after { border-radius: var(--clay-radius); }
.service-visual {
  border: 1px solid #ffffffa6;
  border-radius: 23px;
  background: linear-gradient(135deg, #d5eee4, #e6f1df);
  box-shadow: inset 2px 2px 4px #ffffffc9, inset -4px -5px 9px #729d8929, 3px 4px 9px #354c3e0d;
}
.service-card:nth-child(3) .service-visual { background: linear-gradient(135deg, #e6e1f4, #f1eaf7); }
.service-card:nth-child(4) .service-visual { background: linear-gradient(135deg, #fae7d7, #f5eee0); }
.service-card:nth-child(5) .service-visual { background: linear-gradient(135deg, #dbeaf2, #e8f0f2); }
.agent-core { box-shadow: inset 2px 3px 3px #ffffff50, inset -3px -4px 6px #003e4a50, 4px 6px 9px #006b6026; }
.agent-node { background: #eff8ed; border-color: #ffffff; box-shadow: var(--clay-small); }
.iso-stack i { border-radius: 17px; box-shadow: inset 2px 2px 3px #ffffff70, 4px 6px 8px #354c3e20; }
.neural-nodes { filter: drop-shadow(2px 3px 2px #006b6026); }
.tags { gap: 8px; }
.tags span { padding: 5px 10px; border: 1px solid #ffffff; border-radius: 20px; background: #eeeee6; color: #4c5d54; }
.card-link > span, .service-related-links a > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: var(--clay-small);
}
.process-grid { gap: 24px; }
.process-grid article, .engagement-grid article, .service-detail-card {
  padding: 28px;
  border: 1px solid #ffffff;
  border-radius: 26px;
  background: var(--clay-face);
  box-shadow: var(--clay-shadow);
  min-width: 0;
}
.process-number { align-items: center; min-height: 48px; }
.process-grid h3 { margin-top: 24px; }
.engagement-grid { gap: 24px; }
.solution-finder { border-color: #fff; box-shadow: inset 0 3px 8px #354c3e08; }
.solution-finder select { background-color: #f7faf3; }

/* Dark clay uses a restrained highlight to retain the workflow contrast. */
.workflow-panel, .service-contact, .python-example {
  border: 1px solid #466659;
  border-radius: var(--clay-radius);
  background: linear-gradient(145deg, #24493e, #183a32);
  box-shadow: 8px 12px 24px #0b201b26, inset 2px 2px 3px #ffffff14, inset -4px -5px 9px #071c2440;
}
.workflow-task { border-radius: 18px; box-shadow: inset 2px 3px 7px #071c2433; }
.workflow-task select { box-shadow: none; border-radius: 4px; }
.workflow-task select:focus-visible { background-color: var(--ink); }
.workflow-step { border-radius: 18px; background: #23473c; box-shadow: inset 1px 1px 2px #ffffff12, 3px 4px 8px #071c241a; }
.step-icon { border-radius: 11px; background: #2c5346; box-shadow: inset 1px 1px 2px #ffffff26, 2px 3px 5px #071c2426; }
.agentic-section .button, .agentic-section .demo-button, .service-contact .button {
  background: linear-gradient(145deg, #d6efd7, #a8dbbe);
  border-color: #b9e5c9;
  color: #183a32;
  box-shadow: 0 4px 0 #7eab92, 0 7px 12px #071c2433, inset 2px 2px 3px #ffffffa6;
}
.agentic-section .button:active, .agentic-section .demo-button:active, .service-contact .button:active {
  box-shadow: 0 1px 0 #7eab92, inset 2px 3px 5px #354c3e26;
}

/* Forms and disclosures: raised containers, recessed fields. */
#project-form, .faq-grid details, .faq-grid details:last-child,
.service-related-links a, .service-example, .project-card {
  border: 1px solid #ffffff;
  border-radius: var(--clay-radius);
  background: var(--clay-face);
  box-shadow: var(--clay-shadow);
}
.faq-grid details { padding: 0 24px; margin-bottom: 16px; border-radius: 20px; }
.faq-grid details[open] { background: #eff5ec; }
.faq-grid summary { min-height: 72px; gap: 16px; }
.faq-grid summary > span { flex-shrink: 0; }
.service-related-links a { padding: 22px 24px; border-radius: 22px; }
.service-example { background: linear-gradient(145deg, #eff6eb, #e1eee2); }
.project-card { overflow: hidden; }
.project-image { height: auto; min-height: 0; aspect-ratio: 4 / 3; border-radius: 30px 30px 0 0; }
.project-image > img { object-position: 93% center; }
.course-tabs { border: 0; gap: 14px; padding-bottom: 6px; }
.course-tabs button, .answer-row span, .pattern-samples span {
  border: 1px solid #ffffff;
  background: var(--clay-face);
  box-shadow: var(--clay-small);
}
.course-tabs button[aria-selected='true'], .answer-row input:checked + span {
  background: linear-gradient(145deg, #087c70, #006257);
  border-color: #006257;
  box-shadow: inset 2px 3px 5px #003e4a40, inset -1px -1px 2px #ffffff30;
}
.course-example { border-radius: 28px; box-shadow: var(--clay-shadow); }
.course-example.python-example { box-shadow: 8px 12px 24px #0b201b26, inset 2px 2px 3px #ffffff14, inset -4px -5px 9px #071c2440; }
.mini-code { padding: 22px; border: 1px solid #ffffff; border-radius: 20px; background: #f4f3e9; box-shadow: var(--clay-inset); }
.project-pattern span { box-shadow: var(--clay-small); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service-card:hover { transform: translateY(-3px); box-shadow: 10px 16px 28px #354c3e1c, -5px -5px 18px #ffffffb3, inset 2px 2px 3px #fff, inset -3px -4px 7px #8f9d851c; }
}
@media (max-width: 1100px) {
  .service-card { gap: 24px; padding: 24px; }
  .process-grid article, .engagement-grid article { padding: 24px; }
}
@media (max-width: 800px) {
  .header-inner nav { left: 12px; right: 12px; border: 1px solid #fff; border-radius: 22px; background: var(--surface-2); box-shadow: var(--clay-shadow); }
  html:not(.navigation-ready) .header-inner nav { background: transparent; border-radius: 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { padding: 20px; border-radius: 32px; }
  .service-card { grid-template-columns: 110px 1fr; }
  .service-visual { min-width: 0; }
  .project-image { aspect-ratio: auto; height: 100%; border-radius: 30px 0 0 30px; }
}
@media (max-width: 580px) {
  :root { --clay-radius: 26px; }
  .service-card { grid-template-columns: 1fr; padding: 24px 20px; }
  .service-card .service-visual { display: flex; min-height: 140px; }
  .service-visual svg { max-width: 230px; height: 115px; margin-bottom: 20px; }
  .service-body h3 { font-size: 28px; }
  .service-detail-card { padding: 24px 18px; }
  .process-grid { grid-template-columns: 1fr; gap: 18px; }
  .process-grid h3 { margin-top: 18px; }
  .service-related-links { gap: 16px; }
  .service-related-links a { padding: 20px; }
  .faq-grid details { padding-inline: 18px; }
  .faq-grid summary { font-size: 14px; }
  .project-image { height: auto; aspect-ratio: 4 / 3; border-radius: 24px 24px 0 0; }
  .course-tabs { gap: 8px; }
  .course-tabs button { padding-inline: 6px; }
  .mini-code { padding: 18px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .button:hover, .button:active, .demo-button:hover, .demo-button:active, .project-card:hover { transform: none; }
}
