/* Interaction patterns adapted from Aceternity UI (container scroll, sticky scroll reveal, lamp header,
   animated tabs, stateful button), rebuilt for this static site. No effect follows the cursor. */

/* Sticky scroll reveal: "A project, end to end" */
.v2-sticky { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.v2-sticky-visual {
  position: sticky; top: 110px; display: grid; grid-template-rows: auto 1fr auto; height: min(460px, 62vh); padding: 26px 28px 24px; overflow: hidden;
  border: 1px solid var(--espresso-line); border-radius: 18px; background: var(--espresso-surface); color: var(--on-espresso);
  box-shadow: 0 34px 70px -38px rgba(17, 13, 9, 0.75);
}
.v2-sticky-top { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-geist-mono), monospace; }
.v2-sticky-num { font-size: 44px; line-height: 1; color: var(--copper-300); letter-spacing: -0.02em; transition: opacity 0.3s; }
.v2-sticky-of { font-size: 13px; color: var(--on-espresso-muted); }
.v2-sticky-art { position: relative; }
.v2-art { position: absolute; inset: 8% 4%; width: 92%; height: 84%; color: var(--on-espresso); opacity: 0; transform: translateY(16px) scale(0.96); filter: blur(6px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s; }
.v2-sticky[data-step="0"] [data-art="0"], .v2-sticky[data-step="1"] [data-art="1"], .v2-sticky[data-step="2"] [data-art="2"] { opacity: 1; transform: none; filter: none; }
.v2-sticky-bar { height: 2px; border-radius: 2px; background: rgba(255, 222, 186, 0.12); overflow: hidden; }
.v2-sticky-bar span { display: block; height: 100%; width: calc((var(--step, 0) + 1) / 3 * 100%); background: linear-gradient(90deg, var(--copper-500), var(--copper-300)); transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.v2-sticky-steps { margin: 0; padding: 0; list-style: none; }
.v2-sticky-steps li { min-height: 46vh; padding: 28px 0 28px 28px; border-left: 1px solid var(--rule); transition: opacity 0.4s, border-color 0.4s; }
.js-sticky .v2-sticky-steps li { opacity: 0.35; }
.js-sticky .v2-sticky-steps li.is-active { opacity: 1; border-left-color: var(--copper-500); }
.v2-sticky-steps li:last-child { min-height: 0; }
.v2-sticky-steps span { font: 12px var(--font-geist-mono), monospace; color: var(--v2-copper-text, #94602f); }
.home-v2 .v2-sticky-steps h3 { margin: 12px 0 12px; font: 400 clamp(26px, 2.6vw, 34px)/1.15 TitleSerif, Georgia, serif !important; color: var(--ink); }
.v2-sticky-steps p { max-width: 460px; font-size: 17px; line-height: 1.65; }

/* Lamp header over the closing panel */
.v2-lamp { position: absolute; left: 50%; top: 0; z-index: 0; width: 100%; height: 100%; transform: translateX(-50%); pointer-events: none; }
.v2-lamp::before {
  content: ""; position: absolute; left: 50%; top: -40px; width: var(--lamp, 34%); height: 340px; transform: translateX(-50%);
  background: radial-gradient(60% 55% at 50% 0%, rgba(226, 168, 110, 0.42), rgba(226, 168, 110, 0.08) 55%, transparent 75%);
  filter: blur(8px); transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.4s; opacity: var(--lamp-o, 0.5);
}
.v2-lamp span { position: absolute; left: 50%; top: 0; width: var(--lamp, 34%); height: 2px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--copper-300), transparent); box-shadow: 0 0 18px rgba(226, 168, 110, 0.8); transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.v2-closing.is-lit { --lamp: 72%; --lamp-o: 1; }
.v2-closing { text-align: left; }

/* Animated tabs: one indicator slides between robotics tabs. */
.v2-work-tabs { position: relative; }
.v2-tab-indicator { position: absolute; bottom: -1px; left: 0; height: 2px; width: 0; background: var(--ink); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), width 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.js-tabs .v2-work-tabs button[aria-selected="true"] { border-bottom-color: transparent !important; }

/* Stateful submit buttons: spinner while sending, check when done. */
button[type="submit"].is-loading, .action-primary.is-loading { position: relative; color: transparent !important; pointer-events: none; }
button[type="submit"].is-loading::after, .action-primary.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  border: 2px solid rgba(248, 241, 228, 0.35); border-top-color: #f8f1e4; animation: fx-spin 0.7s linear infinite;
}
button[type="submit"].is-done, .action-primary.is-done { box-shadow: 0 0 0 1px rgba(226, 168, 110, 0.6), 0 0 22px rgba(226, 168, 110, 0.35) !important; }
@keyframes fx-spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .v2-sticky { grid-template-columns: 1fr; gap: 20px; }
  .v2-sticky-visual { top: 82px; height: 240px; z-index: 2; }
  .v2-sticky-num { font-size: 32px; }
  .v2-sticky-steps li { min-height: 52vh; padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-art, .v2-sticky-bar span, .v2-lamp::before, .v2-lamp span, .v2-tab-indicator { transition: none !important; }
  .v2-closing { --lamp: 72%; --lamp-o: 1; }
}

/* The closing panel lays its children out in flow; keep the lamp pinned to the top edge. */
.v2-closing > .v2-lamp { position: absolute; z-index: 0; }

/* LinkedIn link: brand icon, one light sweep on arrival and again on hover. */
.li-link { position: relative; display: inline-flex; align-items: center; gap: 8px; overflow: hidden; border-radius: 6px; color: inherit; text-decoration: none; }
.li-link .li-icon { flex: none; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.li-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.75) 50%, transparent 70%); transform: translateX(-120%); animation: li-shine 1.1s 0.9s ease-out 1; pointer-events: none; }
.li-link:hover::after { animation: li-shine-hover 0.9s ease-out 1; }
.li-link:hover .li-icon { transform: scale(1.08); }
.li-link:hover span { color: #0a66c2; }
.li-link-large { margin-top: 8px; padding: 10px 14px 10px 10px; border: 1px solid var(--rule); background: var(--c-surface, #fdfdf9); font-size: 15px; font-weight: 500; box-shadow: 0 10px 24px -18px rgba(10, 102, 194, 0.6); transition: border-color 0.2s, box-shadow 0.2s; }
.li-link-large:hover { border-color: rgba(10, 102, 194, 0.45); box-shadow: 0 14px 30px -18px rgba(10, 102, 194, 0.75); }
.li-link-large .li-icon { width: 22px; height: 22px; }
@keyframes li-shine { to { transform: translateX(120%); } }
@keyframes li-shine-hover { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

/* Copy buttons with an icon */
.copy-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; margin: 8px 0 0; padding: 0 10px; border: 1px solid var(--rule); border-radius: 7px; background: var(--c-surface, #fdfdf9); color: var(--ink); font-size: 13px; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.copy-chip:hover { border-color: var(--copper-500, #a76d3b); color: var(--copper-500, #a76d3b); }
.copy-chip[data-copied] { border-color: var(--copper-500, #a76d3b); color: var(--copper-500, #a76d3b); }
.copy-chip-dark { margin: 0; height: 46px; padding: 0 16px; border-color: rgba(255, 222, 186, 0.28); background: transparent; color: var(--on-espresso, #f3eadb); font-size: 14px; }
.copy-chip-dark:hover, .copy-chip-dark[data-copied] { border-color: var(--copper-300, #e2a86e); color: var(--copper-300, #e2a86e); }

/* Buttons on the espresso help panel: the primary action is light. */
.help-contact .help-contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.help-contact .help-contact-actions > a { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px !important; border-radius: 8px !important; background: linear-gradient(180deg, #f6ecdc, #e8d8be) !important; color: #18120d !important; font-weight: 500; }
.help-contact .help-contact-actions > a:hover { box-shadow: 0 0 0 1px rgba(226, 168, 110, 0.6), 0 0 24px rgba(226, 168, 110, 0.35) !important; }

/* Experts: the network as three linked nodes; the line draws in node by node. */
.net-flow { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 40px 0 0; padding: 0; list-style: none; }
.net-flow::before { content: ""; position: absolute; left: 6px; right: calc(33.33% - 6px); top: 7px; height: 1px; background: linear-gradient(90deg, var(--copper-500, #a76d3b), var(--copper-300, #e2a86e)); transform-origin: left; transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1); }
.net-flow li { position: relative; display: grid; gap: 6px; padding-top: 34px; transition: opacity 0.6s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.net-flow li::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--page, #f8f6f1); border: 2px solid var(--copper-500, #a76d3b); box-shadow: 0 0 0 5px rgba(167, 109, 59, 0.12); }
.net-num { font: 400 clamp(40px, 4.6vw, 58px)/1 TitleSerif, Georgia, serif; color: var(--copper-500, #a76d3b); letter-spacing: -0.02em; }
.net-label { font: 500 12px var(--font-geist-mono), monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.net-copy { max-width: 260px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.net-ready.net-flow::before { transform: scaleX(0); }
.net-ready.net-flow li { opacity: 0; transform: translateY(14px); }
.net-ready.net-flow.is-in::before { transform: scaleX(1); }
.net-ready.net-flow.is-in li { opacity: 1; transform: none; }
.net-flow.is-in li:nth-child(2) { transition-delay: 0.35s; }
.net-flow.is-in li:nth-child(3) { transition-delay: 0.7s; }
.net-more { margin-top: 36px; border-top: 1px solid var(--rule); }
.net-more summary { display: inline-flex; align-items: center; gap: 10px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 15px; color: var(--ink); }
.net-more summary::-webkit-details-marker { display: none; }
.net-more summary::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.2s; }
.net-more[open] summary::after { transform: rotate(225deg); margin-top: 2px; }
.net-more-body { display: grid; gap: 14px; max-width: 760px; padding-bottom: 8px; }
.net-more-body p { font-size: 16px; line-height: 1.7; color: var(--muted); }
@media (max-width: 820px) {
  .net-flow { grid-template-columns: 1fr; gap: 28px; }
  .net-flow::before { left: 6px; right: auto; top: 7px; bottom: 40px; width: 1px; height: auto; transform-origin: top; }
  .net-flow li { padding: 0 0 0 34px; }
  .net-ready.net-flow::before { transform: scaleY(0); }
  .net-ready.net-flow.is-in::before { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) { .li-link::after { display: none; } }

/* Careers: icons on benefit cards */
.benefit-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 10px; background: linear-gradient(160deg, #2a2118, #15100c); color: var(--copper-300, #e2a86e); box-shadow: 0 8px 18px -10px rgba(17, 13, 9, 0.6); }

/* Application dialog: sectioned, calm, professional */
.application-dialog { width: min(720px, calc(100% - 32px)) !important; max-width: 720px !important; }
.application-dialog .dialog-inner { padding: 0 !important; }
.application-dialog .dialog-header { margin: 0 !important; padding: 26px 30px 20px; border-bottom: 1px solid var(--rule); background: var(--espresso-surface); color: var(--on-espresso); border-radius: 14px 14px 0 0; }
.application-dialog .dialog-header .eyebrow { color: var(--copper-300) !important; }
.application-dialog .dialog-header h3 { margin: 6px 0 6px !important; font: 400 30px/1.15 TitleSerif, Georgia, serif !important; color: var(--on-espresso); }
.application-dialog .apply-meta { margin: 0; font-size: 13px; color: var(--on-espresso-muted); }
.application-dialog .close-dialog { color: var(--on-espresso-muted); }
.application-dialog .close-dialog:hover { background: rgba(255, 222, 186, 0.1); color: var(--on-espresso); }
.application-dialog .apply-form { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px 16px !important; padding: 22px 30px 26px; }
.application-dialog .apply-form > * { grid-column: auto !important; }
.application-dialog .apply-form > .apply-section, .application-dialog .apply-form > .apply-wide, .application-dialog .apply-form > .form-actions, .application-dialog .apply-form > .form-status { grid-column: 1 / -1 !important; }
.apply-section { display: flex; align-items: center; gap: 10px; margin: 8px 0 -2px; font: 500 12px var(--font-geist-mono), monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.apply-section span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(167, 109, 59, 0.12); color: var(--copper-500, #a76d3b); font-size: 11px; }
.apply-section:first-of-type { margin-top: 0; }
.application-dialog .apply-field label { font-size: 11px !important; color: var(--muted); }
.application-dialog .apply-field textarea { min-height: 92px !important; height: auto !important; }
.apply-upload input[type="file"] { min-height: 64px; padding: 14px !important; }
.application-dialog .form-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px !important; padding-top: 16px; border-top: 1px solid var(--rule); }
.apply-privacy { margin: 0 auto 0 0; font-size: 12.5px; color: var(--muted); }
.apply-privacy a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .application-dialog .apply-form { grid-template-columns: 1fr !important; padding: 18px; }
  .application-dialog .dialog-header { padding: 20px 18px 16px; }
  .application-dialog .form-actions { flex-wrap: wrap; }
  .apply-privacy { flex-basis: 100%; }
}

/* Get data: icons on the two paths, and a what-happens-next strip */
.path-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 10px; background: linear-gradient(160deg, #2a2118, #15100c); color: var(--copper-300, #e2a86e); box-shadow: 0 8px 18px -10px rgba(17, 13, 9, 0.6); }
.next-steps { position: relative; display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.next-steps::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 1px; background: linear-gradient(180deg, var(--copper-500, #a76d3b), rgba(167, 109, 59, 0.15)); }
.next-steps li { position: relative; display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--ink); }
.next-steps span { position: relative; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--page, #f8f6f1); border: 1px solid var(--copper-500, #a76d3b); font: 500 11px var(--font-geist-mono), monospace; color: var(--copper-500, #a76d3b); }
.next-note { margin-top: 18px !important; font-size: 14px; color: var(--muted); }

.net-flow li { align-content: start; }

.li-link-large { display: flex; width: fit-content; }

/* LinkedIn in the site's own palette: copper mark; on Get data, an espresso button that shines in place. */
.li-link .li-icon { color: var(--copper-500, #a76d3b); }
.li-link:hover span { color: var(--copper-500, #a76d3b); }
.li-link-large { gap: 10px; height: 46px; margin-top: 10px; padding: 0 18px 0 12px; border: 1px solid #18120d; border-radius: 8px; background: linear-gradient(180deg, #2a2118, #18120d); color: #f8f1e4 !important; font-weight: 500; box-shadow: none; }
.li-link-large .li-icon { color: var(--copper-300, #e2a86e); }
.li-link-large:hover { border-color: #18120d; box-shadow: 0 0 0 1px rgba(226, 168, 110, 0.45), 0 12px 26px -12px rgba(167, 109, 59, 0.7); }
.li-link-large:hover span { color: var(--copper-300, #e2a86e); }
.li-link-large::after { background: linear-gradient(100deg, transparent 30%, rgba(255, 226, 190, 0.45) 50%, transparent 70%); }
