/* ==========================================================================
   Seidr Labs · services.html
   Page-only pieces: the wayfinder, the starting-point index, product and
   build cards with scope accordions, the electronics and machinery clearings,
   the process path and the enquiry clearing. Everything else comes from
   seidr-v2.css.
   ========================================================================== */

main [id] { scroll-margin-top: 136px; }

/* ---------- hero extras ---------- */
.page-services .page-hero h1 { max-width: 13ch; }
.hero-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; max-width: 720px; }
.hero-jumps .chip { text-decoration: none; }
.hero-folio { margin-top: 26px; }

/* ---------- wayfinder: a pill that rides the hero's lower edge, then sticks ---------- */
/* once stuck, the pill hangs fully below the 62px scrolled nav, with a small gap */
.wayfinder { position: sticky; top: calc(95px + env(safe-area-inset-top, 0px)); z-index: 40; height: 0; display: flex; align-items: flex-start; justify-content: center; pointer-events: none; }
.wayfinder-bar {
  pointer-events: auto; transform: translateY(-50%);
  display: flex; gap: 2px; padding: 5px; max-width: calc(100vw - 2 * var(--gutter)); overflow-x: auto; scrollbar-width: none;
  border-radius: 99px; border: 1px solid var(--line-2);
  background: rgba(8, 15, 17, .78); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .8);
}
.wayfinder-bar::-webkit-scrollbar { display: none; }
.wayfinder a {
  flex: none; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; white-space: nowrap;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mist);
  padding: 8px 13px; border-radius: 99px; transition: color .25s, background .25s;
}
.wayfinder a .rune { font-size: .95rem; color: var(--mist-2); transition: color .25s, text-shadow .25s; }
.wayfinder a:hover { color: var(--bone); background: rgba(237, 230, 213, .06); }
.wayfinder a[aria-current="true"] { color: var(--sap); background: rgba(243, 183, 95, .12); }
.wayfinder a[aria-current="true"] .rune { color: var(--sap); text-shadow: 0 0 12px var(--sap); }
@media (max-width: 900px) {
  .wayfinder a { padding: 8px 9px; letter-spacing: .06em; }
}
@media (max-width: 800px) {
  .wayfinder { justify-content: flex-start; padding-inline: var(--gutter); }
}

/* ---------- starting-point index ---------- */
.pathfinder { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.path-group > header { display: grid; gap: 8px; margin-bottom: 20px; }
.path-group > header h3 { font-size: var(--t-h3); }
.path-group > header p { color: var(--mist); font-size: .95rem; }

.ready-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ready-tile {
  --c: var(--sap);
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; text-decoration: none;
  border-radius: var(--r-m); border: 1px solid var(--line); background: linear-gradient(180deg, var(--moss), var(--night-2));
  transition: border-color .35s, transform .5s var(--ease);
}
.ready-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 16%, transparent), transparent 60%); opacity: 0; transition: opacity .35s; }
.ready-tile:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); transform: translateY(-3px); }
.ready-tile:hover::before { opacity: 1; }
.ready-tile .shot { height: 128px; overflow: hidden; background: #050a0b; border-bottom: 1px solid var(--line); position: relative; }
.ready-tile .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; opacity: .78; filter: saturate(.85); transition: transform 1.1s var(--ease), opacity .4s; }
.ready-tile .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15, 29, 29, .9)); }
.ready-tile:hover .shot img { transform: scale(1.05); opacity: .95; }
.ready-tile .copy { position: relative; z-index: 2; display: grid; gap: 6px; padding: 14px 16px 16px; align-content: start; }
.ready-tile .copy .label { font-size: .75rem; color: var(--c); }
.ready-tile .copy strong { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; line-height: 1.1; color: var(--bone); }
.ready-tile .copy small { color: var(--mist); font-size: .84rem; line-height: 1.5; }
.ready-tile .go { position: absolute; z-index: 2; top: 10px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(6, 11, 13, .82); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); font-family: var(--f-rune); font-size: 1.1rem; line-height: 1; color: var(--c); text-shadow: 0 0 12px color-mix(in srgb, var(--c) 55%, transparent); }

.build-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: build; }
.build-list li { border-bottom: 1px solid var(--line); }
.build-list a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 15px 10px 15px 4px; text-decoration: none; border-radius: 10px; transition: background .3s, padding .35s var(--ease);
}
.build-list .rune { font-size: 1.45rem; color: var(--mist-2); text-align: center; transition: color .3s, text-shadow .3s, transform .5s var(--ease-spring); }
.build-list strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; line-height: 1.15; color: var(--bone); }
.build-list small { display: block; color: var(--mist); font-size: .85rem; margin-top: 2px; }
.build-list .arr { color: var(--mist-2); transition: transform .35s var(--ease), color .3s; }
.build-list a:hover, .build-list a:focus-visible { background: rgba(237, 230, 213, .035); padding-left: 10px; }
.build-list a:hover .rune, .build-list a:focus-visible .rune { color: var(--aurora); text-shadow: 0 0 16px var(--aurora); transform: scale(1.15); }
.build-list a:hover .arr { color: var(--sap); transform: translate(3px, -3px); }
.path-foot { margin-top: 30px; color: var(--mist); font-size: .95rem; }
.path-foot a { color: var(--sap); }
@media (max-width: 960px) { .pathfinder { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .ready-grid { grid-template-columns: 1fr; } .ready-tile .shot { height: 110px; } }

/* ---------- product + build cards ---------- */
.sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 0 0 22px; padding-top: 8px; }
.sub-head h3 { font-size: var(--t-h3); display: inline-flex; align-items: baseline; gap: 14px; }
.sub-head h3 .rune { font-size: .9em; color: var(--aurora); }
.sub-head p { color: var(--mist); font-size: .95rem; max-width: 52ch; }

.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .prod-grid { grid-template-columns: 1fr; } }

/* ready products: five cards. Three across, then two wider cards on desktop;
   on tablets the last card spans the row and splits its copy into two columns. */
@media (min-width: 1101px) {
  .prod-grid--ready { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .prod-grid--ready > .prod { grid-column: span 2; }
  .prod-grid--ready > .prod:nth-child(n+4) { grid-column: span 3; }
}
@media (min-width: 681px) and (max-width: 1100px) {
  .prod-grid--ready > .prod:last-child:nth-child(odd) {
    grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(24px, 4vw, 48px); align-content: start;
  }
  .prod-grid--ready > .prod:last-child:nth-child(odd) > * { grid-column: 1; }
  .prod-grid--ready > .prod:last-child:nth-child(odd) > .prod-top { grid-column: 1 / -1; }
  .prod-grid--ready > .prod:last-child:nth-child(odd) > .ticks { grid-column: 2; grid-row: 2 / span 3; align-self: center; }
}

.prod {
  --c: var(--sap);
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-l); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(90% 60% at 100% 0%, color-mix(in srgb, var(--c) 8%, transparent), transparent 65%), linear-gradient(180deg, var(--moss), var(--night-2));
  transition: border-color .35s;
}
.prod::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 13%, transparent), transparent 60%); opacity: 0; transition: opacity .4s; }
.prod:hover { border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.prod:hover::before { opacity: 1; }
.prod > * { position: relative; }
.prod-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.prod-rune { font-size: 2.3rem; color: var(--c); text-shadow: 0 0 22px color-mix(in srgb, var(--c) 55%, transparent); transition: transform .6s var(--ease-spring); }
.prod:hover .prod-rune { transform: rotate(-8deg) scale(1.1); }
.prod h3, .prod h4 { font-size: clamp(1.8rem, 2.4vw, 2.3rem); }
.prod .sub { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c); margin-top: -6px; }
.prod p { color: var(--mist); font-size: .94rem; }
.prod p a { color: var(--sap); }
.prod .fine { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; color: var(--aurora); }
.prod .fine::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.prod .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
/* the "free tier" line sits just above the pinned actions, so it lines up across a row */
.prod .fine { margin-top: auto; }
.prod .fine + .actions { margin-top: 0; }
/* build cards: the scope accordion and its button sit on one line across a row */
.prod > .scope { margin-top: auto; }
.prod > .scope + .actions { margin-top: 0; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .9rem; color: var(--mist); }
.ticks li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.ticks li::before { content: ""; width: 9px; height: 9px; margin-top: .45em; border-radius: 2px; transform: rotate(45deg); border: 1.5px solid var(--c, var(--aurora)); box-shadow: 0 0 8px color-mix(in srgb, var(--c, var(--aurora)) 50%, transparent); }
.ticks strong { color: var(--bone); font-weight: 600; }

/* scope accordions */
.scope { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scope summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 2px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist);
  transition: color .25s;
}
.scope summary::-webkit-details-marker { display: none; }
.scope summary::after { content: "+"; font-family: var(--f-body); font-size: 1.15rem; line-height: 1; color: var(--c, var(--sap)); transition: transform .35s var(--ease); }
.scope[open] summary::after { transform: rotate(45deg); }
.scope summary:hover { color: var(--bone); }
.scope .ticks { padding: 2px 0 16px; }
.scope[open] .ticks { animation: scopeIn .45s var(--ease); }
@keyframes scopeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.prod.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px clamp(24px, 4vw, 56px); align-items: start; }
.prod.wide .col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 800px) { .prod.wide { grid-template-columns: 1fr; } }

/* ---------- clearings: electronics + machinery ---------- */
.clearing { border-top: 1px solid var(--line); }
.clearing .split { align-items: stretch; }
.clearing-art { position: relative; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: #050a0b; }
.clearing-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform 2s var(--ease); }
.clearing-art:hover img { transform: scale(1.04); }
.clearing-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 11, 13, .1), rgba(6, 11, 13, .88)); }
.clearing-art .cap { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 12px; }
.clearing-art .cap .big { font-family: var(--f-rune); font-size: 3.6rem; line-height: 1; color: var(--c, var(--sap)); text-shadow: 0 0 34px color-mix(in srgb, var(--c, var(--sap)) 70%, transparent); }
.clearing-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.clearing-copy h2 { font-size: var(--t-h2); }
.clearing-copy .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.field-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
@media (max-width: 1000px) { .field-notes { grid-template-columns: 1fr; } }
.note {
  --c: var(--ember);
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-m);
  border: 1px solid var(--line); background: var(--night-2); overflow: hidden; transition: border-color .35s;
}
.note::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 14%, transparent), transparent 60%); opacity: 0; transition: opacity .35s; }
.note:hover { border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.note:hover::before { opacity: 1; }
.note > * { position: relative; }
.note .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.note .rune { font-size: 1.7rem; color: var(--c); }
.note h3 { font-size: 1.65rem; }
.note p { color: var(--mist); font-size: .9rem; }
.note .text-link { margin-top: auto; align-self: flex-start; font-size: .88rem; }

/* design, build, commission, service: sap runs along the chain */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.chain::before { content: ""; position: absolute; left: 12%; right: 12%; top: 19px; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--sap-deep), var(--line-2)); }
.chain::after { content: ""; position: absolute; top: 17px; left: 12%; width: 5px; height: 5px; border-radius: 50%; background: var(--sap); box-shadow: 0 0 12px 2px var(--sap); animation: sapRun 5.5s var(--ease) infinite; }
@keyframes sapRun { 0% { left: 12%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 88%; opacity: 0; } }
.chain li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.chain .rune { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--night); color: var(--sap); font-size: 1.05rem; }
.chain span:last-child { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.chain-note { font-size: .88rem; color: var(--mist-2); margin-top: 10px; text-align: center; }

/* ---------- process path ---------- */
.path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; counter-reset: step; }
.path::before { content: ""; position: absolute; left: 26px; right: 26px; top: 49px; height: 1px; background: linear-gradient(90deg, transparent, var(--aurora-deep), var(--sap-deep), transparent); opacity: .7; }
.path .step { position: relative; background: linear-gradient(180deg, var(--night-2), #081012); transition: border-color .35s, transform .5s var(--ease); }
.path .step:hover { border-color: var(--line-2); transform: translateY(-4px); }
.path .step .n { display: flex; align-items: center; gap: 12px; }
.path .step .n .rune { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--aurora) 35%, transparent); background: var(--night); font-size: 1.4rem; box-shadow: 0 0 24px -6px var(--aurora); }
.path .step .n .label { color: var(--mist-2); }
@media (max-width: 860px) {
  .path { grid-template-columns: 1fr; }
  .path::before { left: 48px; right: auto; top: 30px; bottom: 30px; width: 1px; height: auto; background: linear-gradient(180deg, var(--aurora-deep), var(--sap-deep)); }
}

/* ---------- enquiry clearing ---------- */
.enquire-sec { overflow: hidden; border-top: 1px solid var(--line); background: radial-gradient(70% 60% at 15% 20%, rgba(243, 183, 95, .06), transparent 70%), var(--night); }
.enquire-sec canvas.firefield { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.enquire-sec .container { position: relative; z-index: 2; }
.enquire-side { display: grid; gap: 22px; }
.enquire-side h2 { font-size: var(--t-h2); }
.enquire-side .panel { display: grid; gap: 16px; }
.call-line { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--f-display); font-size: clamp(1.6rem, 2.4vw, 2.1rem); color: var(--bone); }
.call-line .rune { font-size: 1.2rem; color: var(--sap); }
.call-line:hover { color: var(--sap); }

.form-card .field label em { font-style: normal; color: var(--mist-2); text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: .78rem; }
.form-card select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--sap) 50%), linear-gradient(-45deg, transparent 50%, var(--sap) 50%);
  background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat;
}
.form-card select option, .form-card select optgroup { background: #0a1316; color: var(--bone); }
.form-card .field.picked select { animation: picked 1.4s var(--ease); }
@keyframes picked { 0% { box-shadow: 0 0 0 0 rgba(243, 183, 95, .0); } 25% { box-shadow: 0 0 0 6px rgba(243, 183, 95, .28); border-color: var(--sap); } 100% { box-shadow: 0 0 0 0 rgba(243, 183, 95, 0); } }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-actions .form-note { max-width: 36ch; }
.form-card button[type="submit"]:disabled { opacity: .65; cursor: progress; }
.form-card .form-note a { color: var(--mist); }

@media (max-width: 520px) {
  .prod .actions .btn { flex: 1 1 100%; justify-content: center; }
  .chain span:last-child { font-size: .75rem; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) { .chain::after { display: none; } }

/* alignment fixes */
.path .step { align-content: start; }
.clearing .split > .sticky, .enquire-sec .split > .sticky { position: sticky; top: 140px; align-self: start; }
@media (max-width: 900px) { .clearing .split > .sticky, .enquire-sec .split > .sticky { position: static; } }
.call-line { font-variant-numeric: lining-nums; }

/* in-page jumps use a down-right arrow, so it nudges down-right on hover */
.btn[href^="#"]:hover .arr { transform: translate(3px, 3px); }
