/* Page 2: the AI section as pictures and short lines, Piston's panel, and the subscribe form. */
.work, .path, .career { width: min(1180px, 100% - 48px); margin-inline: auto; padding: 72px 0 72px; border-bottom: 1px solid #d9cfc0; }
.work-head { margin-bottom: 32px; }
.work-head h2 { font-size: clamp(36px, 4.4vw, 58px); letter-spacing: -0.025em; line-height: 1; }

.wins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.win { background: #ebe3d6; border-radius: 20px; padding: 26px 26px 28px; }
.win svg { display: block; width: 100%; height: auto; margin-bottom: 20px; }
.win h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; }
.win p { margin-top: 8px; color: #b8451f; font-weight: 600; font-size: 15px; }
.proof { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; padding: 16px 26px; border: 1px solid #1b1815; border-radius: 20px; font-family: 'Fraunces', Georgia, serif; font-size: 21px; line-height: 1.25; }
.proof b { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #d9623a; color: #f5f0e8; font-weight: 500; font-size: 22px; line-height: 32px; text-align: center; }
.work svg text { font-family: 'Fraunces', Georgia, serif; font-weight: 500; }
.dot18 circle { fill: #1b1815; transition: fill .35s ease; }
.dot18 circle.on { fill: #d9623a; }

.piston { display: grid; grid-template-columns: 1.05fr 1fr; background: #1b1815; color: #f5f0e8; border-radius: 20px; overflow: hidden; }
.piston-art { padding: 28px 0 28px 20px; display: flex; align-items: center; }
.piston-art svg { display: block; width: 100%; height: auto; }
.piston-art .who { font-family: 'Inter', 'Segoe UI', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; fill: #f5f0e8; }
.piston-words { padding: 44px 48px 40px 28px; display: flex; flex-direction: column; justify-content: center; }
.piston-words .eyebrow { color: #eba283; margin-bottom: 12px; }
.piston-words h3 { font-size: clamp(27px, 2.9vw, 40px); line-height: 1.1; letter-spacing: -0.015em; }
.piston-words ul { margin-top: 26px; }
.piston-words li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid rgba(245, 240, 232, .16); font-size: 16px; line-height: 1.4; }
.piston-words li > span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #eba283; padding-top: 4px; }
/* the row whose stop is lit in the drawing: a dot before its label, and the label goes white (--lit runs 0 to 1) */
.piston-words li { position: relative; }
.piston-words li::before { content: ''; position: absolute; left: -17px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: #d9623a; opacity: var(--lit, 0); transform: scale(var(--lit, 0)); }
.piston-words li > span { color: color-mix(in srgb, #f5f0e8 calc(var(--lit, 0) * 100%), #eba283); }
.piston-words li i { display: block; position: relative; font-style: normal; font-size: 15px; line-height: 1.35; padding-left: 20px; }
.piston-words li i + i, .piston-words li small.sub + i { margin-top: 6px; }
.piston-words li i::before { content: ''; position: absolute; left: 0; top: 9px; width: 10px; height: 2px; background: #d9623a; }
.piston-words li small.sub { display: block; margin: 12px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: rgba(245, 240, 232, .6); }
.piston-words li small.sub ~ i { margin-left: 20px; }
.piston-words li i.next { color: #eba283; margin-top: 10px; }
.piston-words li i.next::before { background: #eba283; }
.piston-words .small { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(245, 240, 232, .16); font-size: 14px; color: rgba(245, 240, 232, .68); }

.form .say { font-size: 16px; color: #3a342e; }

/* About: one line, a drawn path with three stops, three short columns under the stops. */
.path-say { font-family: 'Fraunces', Georgia, serif; font-size: clamp(22px, 2.3vw, 31px); line-height: 1.3; letter-spacing: -0.01em; max-width: 31em; }
.path-art { margin-top: 28px; }
.path-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.path-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 18px; }
.path-cols .eyebrow { margin-bottom: 6px; }
.path-cols h3 { font-size: 30px; line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 12px; }
.path-cols p, .path-cols li { font-size: 16px; line-height: 1.45; color: #3a342e; max-width: 21em; }
.path-cols li { position: relative; padding-left: 22px; }
.path-cols li + li { margin-top: 7px; }
.path-cols p + ul { margin-top: 12px; }
.path-cols li::before { content: ''; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: #b8451f; }
.path .tag { display: inline-block; margin-top: 32px; padding: 6px 14px; border: 1px solid #1b1815; border-radius: 999px; font-size: 14px; font-weight: 600; }

/* Career: the page's six rows, each with a bar on one shared line of years. */
.g-row { display: grid; grid-template-columns: 530px minmax(0, 1fr); column-gap: 32px; align-items: stretch; border-top: 1px solid #d9cfc0; }
.g-text { display: flex; flex-direction: column; justify-content: center; padding: 15px 0 16px; }
.g-track em { position: absolute; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; color: #6b6259; letter-spacing: .03em; white-space: nowrap; padding: 2px 12px; background: #f5f0e8; }
.g-text .role { font-family: 'Fraunces', Georgia, serif; font-size: 21px; line-height: 1.25; }
.g-text .where { color: #6b6259; font-size: 15px; }
.g-text .where:empty { display: none; }
.g-track { position: relative; background-image: linear-gradient(to right, #d9cfc0 1px, transparent 1px); background-size: 18.5185% 100%; }
.g-track b { position: absolute; top: 50%; height: 16px; margin-top: -8px; border-radius: 8px; background: #1b1815; }
.g-track b.now { background: #d9623a; }
.g-axis { border-top: 0; }
.g-axis .g-track { height: 30px; background: none; }
.g-axis i { position: absolute; top: 4px; font-style: normal; font-size: 13px; color: #6b6259; letter-spacing: .03em; transform: translateX(-1px); padding-left: 6px; border-left: 1px solid #d9cfc0; }

/* Certificates: five cards, each with a seal. Education, Languages, Outside work: three cards with a drawing. */
.cert-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.cert-row li { background: #ebe3d6; border-radius: 20px; padding: 22px 22px 24px; }
.cert-row svg { display: block; width: 44px; height: 44px; margin-bottom: 16px; }
.cert-row span { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.facts .wins { margin-bottom: 0; }
.facts svg text { font-family: 'Fraunces', Georgia, serif; font-weight: 500; }
.win.fact h2 { font-family: 'Inter', 'Segoe UI', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; color: #b8451f; margin: 0 0 8px; }
.win.fact p { color: #3a342e; font-weight: 400; font-size: 16px; line-height: 1.45; }
.win.fact p.out { margin-top: 12px; }
.win.fact p.out a { color: #b8451f; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

/* The team: one job drawn going through the agents, a card for each, and the count of skills. */
.team-lead { font-family: 'Fraunces', Georgia, serif; font-size: clamp(20px, 2vw, 27px); line-height: 1.3; letter-spacing: -0.01em; margin: -14px 0 28px; }
.team-art { background: #ebe3d6; border-radius: 20px; padding: 24px 28px 18px; margin-bottom: 24px; }
.team-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.team-art .who { font-family: 'Inter', 'Segoe UI', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; fill: #1b1815; }
.team-art .mark { opacity: var(--lit, 0); }
.team-say { position: relative; height: 34px; margin: 8px 0 6px; font-family: 'Fraunces', Georgia, serif; font-size: 22px; line-height: 34px; text-align: center; }
.team-say span { position: absolute; left: 0; right: 0; top: 0; opacity: var(--lit, 0); }
.team-say i { display: inline-block; width: 26px; height: 26px; line-height: 26px; margin-right: 12px; border-radius: 50%; background: #d9623a; color: #f5f0e8; font-family: 'Inter', 'Segoe UI', sans-serif; font-style: normal; font-weight: 600; font-size: 13px; vertical-align: 3px; }
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.agent { background: #ebe3d6; border-radius: 20px; padding: 24px 26px 26px; box-shadow: inset 0 0 0 calc(var(--lit, 0) * 2.5px) #d9623a; }
.agent h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; }
.agent p { margin-top: 8px; font-size: 16px; line-height: 1.45; color: #3a342e; }
.skills { display: grid; grid-template-columns: auto 1fr 250px; gap: 36px; align-items: center; background: #1b1815; color: #f5f0e8; border-radius: 20px; padding: 30px 44px; }
.skills b { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 104px; line-height: 1; letter-spacing: -0.03em; color: #d9623a; min-width: 1.15em; }
.skills h3 { font-size: 30px; line-height: 1.15; letter-spacing: -0.015em; }
.skills p { margin-top: 8px; font-size: 16px; line-height: 1.45; color: rgba(245, 240, 232, .72); max-width: 30em; }
.skills svg { display: block; width: 100%; height: auto; }
.team-end { margin-top: 24px; font-family: 'Fraunces', Georgia, serif; font-size: 21px; line-height: 1.3; }

/* For pictures only: one section alone on the page. */
.only-team body > *:not(#team):not(script), .only-work body > *:not(#work):not(script),.only-about body > *:not(#about):not(script), .only-career body > *:not(#career):not(script),
.only-certificates body > *:not(#certificates):not(script), .only-more body > *:not(#more):not(script) { display: none; }
.only-team .work, .only-work .work, .only-about .path, .only-career .career, .only-certificates .work, .only-more .work { border-bottom: 0; padding: 40px 0 40px; }

@media (max-width: 760px) {
  .work, .path, .career { width: calc(100% - 40px); padding: 48px 0; }
  .path-art { display: none; }
  .path-cols { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  .path-cols article { position: relative; padding: 0 0 26px 26px; border-left: 1.6px solid #1b1815; }
  .path-cols article:last-child { padding-bottom: 0; border-left-color: transparent; }
  .path-cols article::before { content: ''; position: absolute; left: -8px; top: 0; width: 14px; height: 14px; border-radius: 50%; background: #1b1815; }
  .path-cols article:last-child::before { background: #d9623a; }
  .path-cols h3 { font-size: 26px; }
  .cert-row { grid-template-columns: 1fr; gap: 10px; }
  .cert-row li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
  .cert-row svg { flex: none; width: 36px; height: 36px; margin: 0; }
  .cert-row span { font-size: 18px; }
  .g-row { grid-template-columns: 1fr; }
  .g-text { padding-bottom: 6px; }
  .g-track { height: 28px; margin-bottom: 14px; }
  .g-track em { font-size: 12px; letter-spacing: 0; padding: 2px 6px; }
  .g-axis { display: none; }
  .wins { grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
  .agents { grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
  .team-art { padding: 14px 10px 10px; margin-bottom: 16px; }
  /* on a phone the drawing is a quarter of its size: the names are set larger and in plain case so they can be read,
     and the line under it is given the room of three lines */
  .team-art .who { font-size: 28px; letter-spacing: 0; text-transform: none; transform: translateY(4px); }
  .team-say { height: 66px; font-size: 17px; line-height: 22px; }
  .team-say i { width: 22px; height: 22px; line-height: 22px; margin-right: 8px; font-size: 12px; vertical-align: 1px; }
  /* a job whose dates have no room before its bar carries them after it */
  .g-track em.after { right: auto !important; left: var(--after); }
  .skills { grid-template-columns: 1fr; gap: 14px; padding: 24px 22px; }
  .skills b { font-size: 72px; }
  .win { padding: 20px 20px 22px; }
  .piston { grid-template-columns: 1fr; }
  .piston-art { padding: 20px 12px 0; }
  .piston-words { padding: 20px 22px 28px; }
  .piston-words li { grid-template-columns: 1fr; gap: 2px; }
}
