/* Talk to us (contact.html). Builds on products.css: the same hairline grid, cards, wires and T-branch pulses.
   Only what this page adds lives here: the three partnership steps, the Careers areas, the inline contact form and
   its success card. Scoped to body.talk-page so it never reaches the Products page.
   Rows: Design partnerships | Research presentation (70/30), Research partnerships | Careers (30/70), then
   Start a conversation as one .pcard-media card: its text in the 30% column, the form (.pmedia) in the 70% column.
   Rows 2 and 3 share one split, so Research partnerships lines up with the conversation text and Careers with the form. */

/* The header is one line, set as the page heading in the display face: a sentence, so smaller than the one-word
   Products and Partners titles, one column, and balanced when it wraps. */
html body.talk-page.home .products-intro.talk-intro{grid-template-columns:minmax(0,1fr)}
html body.talk-page.home .products-intro.talk-intro h1{max-width:none;font-size:clamp(2.5rem,1.6rem + 3.4vw,5.25rem);line-height:1.02;text-wrap:balance}

/* Cards that hold steps or a form use the card's full width. */
html body.talk-page.home :is(#design-partnerships,#conversation) .pbody{max-width:none}

/* Start a conversation: the form sits in a .pmedia wrapper, so the thank-you card that replaces the form keeps the
   form's place in the grid. The wrapper is the size container for the field pairs (the card itself is not one once it
   becomes a subgrid at 1000px). Stacked below 1000px, the card's own gap spaces the form from the text. */
html body.talk-page.home #conversation>.pmedia{width:100%;min-width:0;container-type:inline-size}
html body.talk-page.home #conversation>.pmedia>:is(form.tform,.form-card){margin-top:0}

/* ---------- Design partnership steps ----------
   A short signal path: two open nodes, then the filled accent square (deployment), as on the card glyph.
   Stacked by default; three across once the card is wide enough (container query on .pcard). */
html body.talk-page.home .tsteps{display:grid;grid-template-columns:minmax(0,1fr);gap:0;width:100%;max-width:56rem;margin:1.75rem 0 0;padding:0;list-style:none}
html body.talk-page.home .tsteps li{position:relative;padding:0 0 1.5rem 1.75rem;border:0;color:var(--ink-soft)}
html body.talk-page.home .tsteps li:last-child{padding-bottom:0}
html body.talk-page.home .tsteps li::before{content:"";position:absolute;left:0;top:.125rem;width:.625rem;height:.625rem;box-sizing:border-box;border:1px solid var(--ink-soft);border-radius:50%}
html body.talk-page.home .tsteps li:last-child::before{border-radius:0;border-color:var(--accent);background:var(--accent)}
html body.talk-page.home .tsteps li:not(:last-child)::after{content:"";position:absolute;left:calc(.3125rem - .5px);top:1.125rem;bottom:.375rem;width:1px;background:var(--grid-line)}
html body.talk-page.home .tstep-n{display:block;font-family:var(--p-mono);font-size:.6875rem;font-weight:500;line-height:1;letter-spacing:.1em;color:var(--ink-faint)}
html body.talk-page.home .tsteps li:last-child .tstep-n{color:var(--accent-ink)}
html body.talk-page.home h3.tstep-title{margin:.625rem 0 .375rem;padding:0;font-family:var(--p-text);font-size:1.0625rem;font-weight:600;line-height:1.35;letter-spacing:-.005em;text-transform:none;color:var(--ink)}
html body.talk-page.home p.tstep-text{max-width:30rem;margin:0;font-family:var(--p-text);font-size:.9375rem;line-height:1.55;letter-spacing:-.005em;color:var(--ink-soft);text-wrap:pretty}

@container (min-width:32rem){
 html body.talk-page.home .tsteps{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(1.25rem,2.5vw,2.25rem);margin-top:2.25rem}
 html body.talk-page.home .tsteps li{padding:1.5rem 0 0}
 html body.talk-page.home .tsteps li::before{top:0}
 /* The link runs from this node to the next one, across the column gap. */
 html body.talk-page.home .tsteps li:not(:last-child)::after{left:1rem;right:calc(-1 * clamp(1.25rem,2.5vw,2.25rem) + .375rem);top:calc(.3125rem - .5px);bottom:auto;width:auto;height:1px}
}

/* ---------- Inline contact form ----------
   The same field grid as the site dialogs (assets/dialogs.css): 1px gaps over the line colour draw the hairlines,
   labels sit inside their cells, the focused cell is framed in accent, and the last row pairs the legend with the
   accent send cell. One field per row in a narrow card or on a phone; pairs side by side in a wide card. */
html body.talk-page.home form.tform{width:100%;max-width:48rem;margin:1.75rem 0 0}
html body.talk-page.home .tfields{display:grid;grid-template-columns:minmax(0,1fr);gap:1px;border:1px solid var(--grid-line);background:var(--grid-line)}
html body.talk-page.home .tfield{position:relative;display:flex;flex-direction:column;gap:.375rem;min-width:0;margin:0;padding:.875rem 1rem 1rem;background:var(--bg)}
html body.talk-page.home .tfield:focus-within{z-index:1;outline:2px solid var(--accent);outline-offset:-1px}
html body.talk-page.home .tform label.tlabel{display:block;margin:0;font-family:var(--p-text);font-size:.9375rem;font-weight:500;line-height:1.35;letter-spacing:-.005em;text-transform:none;color:var(--ink);cursor:pointer}
html body.talk-page.home .treq{color:var(--accent-ink,var(--accent))}
html body.talk-page.home .tform .tcontrol{display:block;width:100%;min-width:0;margin:0;padding:.25rem 0;border:0;border-radius:0;background:transparent;box-shadow:none;font-family:var(--p-text);font-size:1.0625rem;font-weight:400;line-height:1.5;letter-spacing:-.005em;color:var(--ink);-webkit-appearance:none;appearance:none}
html body.talk-page.home .tform .tcontrol:is(:focus,:focus-visible){outline:none;border:0;box-shadow:none}
html body.talk-page.home .tform .tcontrol::placeholder{color:var(--ink-faint);opacity:.8}
html body.talk-page.home .tform textarea.tcontrol{min-height:6.5rem;resize:vertical}
html body.talk-page.home .tfoot{justify-content:center}
html body.talk-page.home .tlegend{margin:0;font-family:var(--p-mono);font-size:.6875rem;font-weight:500;line-height:1.3;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-faint)}
html body.talk-page.home .tsend{padding:0}
html body.talk-page.home .tsend:focus-within{outline:none}
html body.talk-page.home .tform button.tsubmit{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;height:100%;min-height:3.75rem;margin:0;padding:1rem 1.25rem;border:0;border-radius:0;background:var(--accent);color:#0b0c0b;box-shadow:none;font-family:var(--p-text);font-size:1.0625rem;font-weight:500;line-height:1.3;letter-spacing:-.005em;text-transform:none;text-align:left;cursor:pointer;transition:background-color .15s ease,color .15s ease}
html body.talk-page.home .tform button.tsubmit:hover{background:var(--ink);color:var(--bg)}
html body.talk-page.home .tform button.tsubmit:focus-visible{outline:2px solid var(--ink);outline-offset:-6px}
html body.talk-page.home .tform button.tsubmit:hover:focus-visible{outline-color:var(--bg)}
html body.talk-page.home .tform button.tsubmit:disabled{cursor:progress;opacity:.8}
html body.talk-page.home .tarrow{flex:none;transition:transform .15s ease}
html body.talk-page.home .tform button.tsubmit:hover .tarrow{transform:translateX(.2rem)}
html body.talk-page.home .tform .form-error{margin:1rem 0 0;font-family:var(--p-text);font-size:.9375rem;line-height:1.45}
@container (min-width:32rem){
 html body.talk-page.home .tfields{grid-template-columns:repeat(2,minmax(0,1fr))}
 html body.talk-page.home .tfield:not(.thalf){grid-column:1/-1}
}
/* Errors from form.js: a red edge and label on the cell, the message under the field. */
html body.talk-page.home .tfield.is-invalid{box-shadow:inset 3px 0 0 #a32929}
html body.talk-page.home .tfield.is-invalid .tlabel{color:#a32929}
html body.talk-page.home .tform .field-error{margin:.125rem 0 0;font-family:var(--p-text);font-size:.875rem;line-height:1.4;color:#a32929}
html[data-theme=dark] body.talk-page.home .tfield.is-invalid{box-shadow:inset 3px 0 0 #f0938e}
html[data-theme=dark] body.talk-page.home .tfield.is-invalid .tlabel,html[data-theme=dark] body.talk-page.home .tform .field-error{color:#f0938e}
/* Honeypot: present for bots, out of sight, out of the tab order and hidden from screen readers. */
html body.talk-page.home .tform .hp{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media (forced-colors:active){
 html body.talk-page.home .tfield:focus-within{outline-color:Highlight}
 html body.talk-page.home .tform button.tsubmit{border:1px solid ButtonText}
}

/* The thank-you card form.js puts in place of the form: the dialogs' style, inside a hairline box. */
html body.talk-page.home #conversation .form-card{width:100%;max-width:48rem;margin:1.75rem 0 0;padding:clamp(1.25rem,1rem + 1vw,2rem);border:1px solid var(--grid-line);border-radius:0;background:none;box-shadow:none;text-align:left}
html body.talk-page.home #conversation .form-card .check{display:grid;place-items:center;width:2.5rem;height:2.5rem;margin:0 0 1.25rem;border-radius:0;background:var(--accent);color:#0b0c0b;font-size:1.125rem;line-height:1}
html body.talk-page.home #conversation .form-card h3{margin:0 0 .5rem;font-family:var(--p-display);font-size:clamp(1.5rem,1.25rem + .8vw,2rem);font-weight:var(--display-weight,400);line-height:1.1;letter-spacing:var(--display-tracking,-.02em);text-transform:none;color:var(--ink)}
html body.talk-page.home #conversation .form-card p{margin:0;font-family:var(--p-text);font-size:1.0625rem;line-height:1.6;color:var(--ink-soft)}
html body.talk-page.home #conversation .form-card p.form-dry{margin-top:.75rem;font-family:var(--p-mono);font-size:.75rem;letter-spacing:.04em;color:var(--ink-faint)}

/* Tablets and small laptops (720-999px): each card takes a full row, so the steps run three across and the form
   pairs its fields instead of squeezing into half the width beside a mostly empty card. */
@media (min-width:45rem) and (max-width:62.4375rem){
 html body.talk-page.home .pgrid>.prow{grid-template-columns:minmax(0,1fr)}
 html body.talk-page.home .pgrid>.prow>:is(.pcard-l,.pcard-r){grid-column:1;grid-row:auto}
 html body.talk-page.home .pgrid>.prow>.pcard-r{border-left:0;border-top:1px solid var(--grid-line)}
 html body.talk-page.home .pgrid .pcard{min-height:0}
}

/* Request a presentation: the one solid link among the cards, so the research presentation offer stands out.
   Its text sits on the same line as the plain links beside it (the same block padding as .plink). */
html body.talk-page.home .pgrid .plink.plink-solid{padding:.6875rem 1rem;background:var(--accent);color:#0b0c0b;transition:background-color .15s ease,color .15s ease}
html body.talk-page.home .pgrid .plink.plink-solid .parrow{color:inherit}
html body.talk-page.home .pgrid .plink.plink-solid:hover{background:var(--ink);color:var(--bg)}
html body.talk-page.home .pgrid .plink.plink-solid:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
@media (forced-colors:active){html body.talk-page.home .pgrid .plink.plink-solid{border:1px solid ButtonText}}

/* Careers: an even two-line blurb in the wide card (no two-word last line). */
html body.talk-page.home #careers .pblurb{text-wrap:balance}
/* Careers areas: a two-column hairline list once the card is wide enough (the 70% card from 1000px, or a
   full-width card on a tablet); chips in a narrow card, as on a phone. */
@container (min-width:24rem){
 html body.talk-page.home #careers .pchips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(1.25rem,2.5vw,2.25rem);width:100%;max-width:36rem;margin-top:1.5rem}
 html body.talk-page.home #careers .pchips li{padding:.75rem 0;border:0;border-top:1px solid var(--grid-line)}
 html body.talk-page.home #careers .pchips li:nth-last-child(-n+2){border-bottom:1px solid var(--grid-line)}
}
