/* 11 November 2026. Loaded last. Presentation only: no project copy lives here.
   To undo, remove this file's <link> from index.html. */

/* 1. Menu: Work, CV and Connect were 26 to 28px tall, hard to hit with a finger.
   The text stays where it is. Only the area that answers a tap grows. */
#portfolio-table-study .nav-links > * { position:relative; }
#portfolio-table-study .nav-links > *::after {
  content:''; position:absolute; left:-7px; right:-7px; top:50%;
  height:44px; transform:translateY(-50%);
}

/* 2. CV card: one card, two versions, and a switch between them in the header.
   The new CV is A4. The page picture is what laptops and tablets show, as before.
   The same CV as text sits beside each picture for screen readers. */
#portfolio-table-study .cv-document { aspect-ratio:595/842; overflow:hidden; }
/* The swap: the page on screen fades out first, then the other one settles in from the side
   its name sits on in the switch. The two pages never show through each other. */
#portfolio-table-study .cv-sheet { position:absolute; inset:0; z-index:1; background:#fff; transition:opacity 190ms ease-out 100ms, transform 240ms cubic-bezier(.22,.68,.25,1) 100ms; }
#portfolio-table-study .cv-sheet[hidden] { display:none; }
#portfolio-table-study .cv-sheet.is-entering { opacity:0; transform:translateX(calc(var(--cv-swap,1) * 2.5%)) rotate(calc(var(--cv-swap,1) * .5deg)); transition:none; }
#portfolio-table-study .cv-sheet.is-leaving { z-index:0; opacity:0; transition:opacity 100ms ease-in; }
#portfolio-table-study .cv-text {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip-path:inset(50%); border:0;
}
/* The switch: two names on one track, and a marker that slides under the chosen one. */
#portfolio-table-study .cv-dialog-head h2 { margin-right:14px; }
#portfolio-table-study .cv-switch {
  position:relative; display:grid; grid-template-columns:1fr 1fr; margin-right:auto;
  padding:3px; border-radius:999px; background:#f1e6dc; box-shadow:inset 0 0 0 1px #e0d0c6;
}
#portfolio-table-study .cv-switch::before {
  content:''; position:absolute; top:3px; bottom:3px; left:3px; width:calc(50% - 3px);
  border-radius:999px; background:var(--pistachio,#d3e975); box-shadow:0 1px 2px rgba(41,24,49,.22);
  transition:transform 260ms cubic-bezier(.22,.68,.25,1);
}
#portfolio-table-study .profile-panel[data-cv='applied-ai'] .cv-switch::before { transform:translateX(100%); }
#portfolio-table-study .cv-switch-option {
  position:relative; z-index:1; min-height:30px; padding:6px 16px; border:0; border-radius:999px;
  background:transparent; color:#6d5669; white-space:nowrap;
  font:600 13px/1.2 var(--type-text); letter-spacing:0; transition:color 180ms ease;
}
#portfolio-table-study .cv-switch-option[aria-pressed='true'] { color:#291831; }
#portfolio-table-study .cv-switch-option:hover { color:#291831; }
#portfolio-table-study .cv-switch-option:focus-visible { outline:3px solid #ffab7d; outline-offset:2px; }
@media (prefers-reduced-motion:reduce) {
  #portfolio-table-study .cv-sheet, #portfolio-table-study .cv-switch::before, #portfolio-table-study .cv-switch-option { transition:none; }
}

/* 3. Phones: an A4 page at 390px puts its text near 6px. Phones show the CV as text.
   Download PDF still gives the page itself. */
@media (max-width:720px) {
  #portfolio-table-study .cv-document { aspect-ratio:auto; display:block; background:#fffdf9; overflow:visible; }
  #portfolio-table-study .cv-sheet { position:static; background:none; transition:none; }
  #portfolio-table-study .cv-dialog-head { flex-wrap:wrap; row-gap:8px; }
  #portfolio-table-study .cv-dialog-head h2 { margin-right:auto; }
  #portfolio-table-study .cv-switch { order:3; flex-basis:100%; margin:0 6px 2px 0; }
  #portfolio-table-study .cv-page-image { display:none; }
  #portfolio-table-study .cv-text {
    position:static; width:auto; height:auto; margin:0; padding:22px 18px 28px;
    overflow:visible; clip-path:none;
    color:#291831; font:400 15px/1.5 var(--type-text); letter-spacing:0; text-align:left;
  }
  #portfolio-table-study .cv-text p { margin:0; }
  #portfolio-table-study .cv-text .cv-name { font:650 26px/1.1 var(--type-display); letter-spacing:-.02em; }
  #portfolio-table-study .cv-text .cv-headline { margin-top:4px; font:600 16px/1.3 var(--type-text); }
  #portfolio-table-study .cv-text .cv-contact { display:flex; flex-direction:column; align-items:flex-start; margin-top:6px; font-size:14px; line-height:1.3; color:#6d5669; overflow-wrap:anywhere; }
  #portfolio-table-study .cv-text .cv-contact + .cv-contact { margin-top:0; }
  #portfolio-table-study .cv-text .cv-contact > span[aria-hidden] { display:none; }
  #portfolio-table-study .cv-text .cv-contact a { color:#3c2046; padding:7px 0; }
  #portfolio-table-study .cv-text h3 {
    margin:24px 0 8px; padding-bottom:6px; border-bottom:1px solid #e3d5cb;
    font:650 17px/1.2 var(--type-display); letter-spacing:-.01em; color:#291831;
  }
  #portfolio-table-study .cv-text .cv-entry + .cv-entry { margin-top:18px; }
  #portfolio-table-study .cv-text .cv-where { font-size:13.5px; color:#6d5669; }
  #portfolio-table-study .cv-text ul { margin:8px 0 0; padding-left:18px; }
  #portfolio-table-study .cv-text li + li { margin-top:7px; }
  #portfolio-table-study .cv-text .cv-skill + .cv-skill { margin-top:7px; }
}

/* 4. Phones: the figure title of Reporting with AI ran up against the card numeral
   in the corner. The titles of the drawn figures now leave that corner free. */
@media (max-width:720px) {
  #portfolio-table-study .reading .reporting-figure h2,
  #portfolio-table-study .reading .orus-figure h2,
  #portfolio-table-study .reading .argos-figure h2,
  #portfolio-table-study .reading .fusion-figure h2 { padding-right:26px; }
}

/* 4b. Short windows (a 1366 by 768 laptop leaves about 650px of page).
   The table used to squeeze itself to fit the height. Its cards shrank with it but its type
   did not, so the intro printed over "Selected work", one card's text ran into its footer and
   the pile slid over the lead cards. The table now keeps its normal size and the page scrolls. */
@media (min-width:721px) and (max-height:760px) {
  #portfolio-table-study .table-scene { max-width:1120px; }
}
@media (min-width:1024px) and (max-height:760px) {
  #portfolio-table-study .table-scene:not(.reading) { height:min(94cqw,1052.8px); }
}

/* 5. Tablets and half-width windows (721px to 1023px).
   The table is drawn in container units, so below laptop width its card text fell to 9 or 10px.
   The same cards in the same arrangement are now drawn larger: the three lead cards grow in
   place, the outer two step aside by what the middle one gained, and the pile and the CV card
   move down by the height the lead cards gained. Nothing is rearranged.
   scale and translate are used as their own properties, so the page's transform (tilt, hover,
   the opening deal) is left exactly as it was. */
@media (min-width:721px) and (max-width:799px) { #portfolio-table-study { --table-k:1.2; } }
@media (min-width:800px) and (max-width:879px) { #portfolio-table-study { --table-k:1.16; } }
@media (min-width:880px) and (max-width:1023px) { #portfolio-table-study { --table-k:1.08; } }
@media (min-width:721px) and (max-width:1023px) {
  #portfolio-table-study .table-scene:not(.reading) { height:calc(97cqw + (var(--table-k) - 1) * 40cqw); }
  /* A little more card for the longest description and a two-line company name. */
  #portfolio-table-study .table-scene:not(.reading) .project-card[data-slot]:not(.anchored) { min-height:35.4cqw; }
  #portfolio-table-study .table-scene:not(.reading) .project-card[data-slot] { scale:var(--table-k); }
  #portfolio-table-study .table-scene:not(.reading) .project-card[data-slot='left'] { translate:calc((1 - var(--table-k)) * 25cqw) calc((var(--table-k) - 1) * 17.7cqw); }
  #portfolio-table-study .table-scene:not(.reading) .project-card[data-slot='center'] { translate:0 calc((var(--table-k) - 1) * 17.7cqw); }
  #portfolio-table-study .table-scene:not(.reading) .project-card[data-slot='right'] { translate:calc((var(--table-k) - 1) * 25cqw) calc((var(--table-k) - 1) * 17.7cqw); }
  #portfolio-table-study .table-scene:not(.reading) .reserve-card:not(.anchored),
  #portfolio-table-study .table-scene:not(.reading) .resume-back,
  #portfolio-table-study .table-scene:not(.reading) .back-weave:not(.back-header) { translate:0 calc(2.6cqw * var(--table-k) + (var(--table-k) - 1) * 35.4cqw); }
  #portfolio-table-study .table-scene:not(.reading) .back-arcs { translate:calc((var(--table-k) - 1) * 16cqw) calc((var(--table-k) - 1) * 16.4cqw); }
  #portfolio-table-study .table-scene:not(.reading) .back-orbits { translate:calc((1 - var(--table-k)) * 14cqw) calc((var(--table-k) - 1) * 16.4cqw); }
  /* The smallest lines on the cards, lifted so they land at 11 to 12px once the card is enlarged. */
  #portfolio-table-study .table-scene:not(.reading) .project-card[data-slot] .project-domain { font-size:1.3cqw; }
  #portfolio-table-study .table-scene:not(.reading) .project-card[data-slot] .card-footer { font-size:1.26cqw; }
  #portfolio-table-study .table-scene:not(.reading) .reserve-card .project-domain { font-size:max(11px,1.4cqw); }
  #portfolio-table-study .table-scene:not(.reading) .reserve-card .project-summary { font-size:max(12px,1.5cqw); }
  #portfolio-table-study .table-scene:not(.reading) .reserve-card .card-footer { font-size:max(11px,1.25cqw); }
  /* On the pile the company name takes its own line, above Open case. */
  #portfolio-table-study .table-scene:not(.reading) .reserve-card .card-footer { flex-wrap:wrap; row-gap:2px; }
  #portfolio-table-study .table-scene:not(.reading) .reserve-card .card-footer > .card-org { max-width:100%; flex-basis:100%; }
  #portfolio-table-study .table-scene:not(.reading) .featured-label,
  #portfolio-table-study .table-scene:not(.reading) .resume-back .contact-title { font-size:max(12px,1.45cqw); }
  /* The enlargement eases in and out with the card when a case opens or closes. */
  #portfolio-table-study .project-card {
    transition:left var(--travel-ms) cubic-bezier(.3,.2,.25,1),top var(--travel-ms) cubic-bezier(.3,.2,.25,1),width var(--travel-ms) cubic-bezier(.3,.2,.25,1),height var(--travel-ms) cubic-bezier(.3,.2,.25,1),transform var(--travel-ms) cubic-bezier(.3,.2,.25,1),padding var(--travel-ms) ease,opacity 170ms ease,box-shadow 220ms ease,scale var(--travel-ms) cubic-bezier(.3,.2,.25,1),translate var(--travel-ms) cubic-bezier(.3,.2,.25,1);
  }
  #portfolio-table-study .table-scene:not(.reading) .project-card {
    transition:left var(--travel-ms) cubic-bezier(.22,.68,.25,1),top var(--travel-ms) cubic-bezier(.22,.68,.25,1),width var(--travel-ms) cubic-bezier(.22,.68,.25,1),height var(--travel-ms) cubic-bezier(.22,.68,.25,1),padding var(--travel-ms) ease,transform 280ms cubic-bezier(.22,.68,.25,1),box-shadow 280ms ease,opacity 170ms ease,scale var(--travel-ms) cubic-bezier(.22,.68,.25,1),translate var(--travel-ms) cubic-bezier(.22,.68,.25,1);
  }
}
@media (min-width:721px) and (max-width:1023px) and (prefers-reduced-motion:reduce) {
  #portfolio-table-study .project-card { transition:none !important; }
}

/* 6. Phones: the menu was 11px. */
@media (max-width:720px) {
  #portfolio-table-study .portfolio-nav { font-size:13px; }
}

/* 7. Touch screens: Close, Download PDF and the links in the panels were 21 to 36px tall. */
@media (pointer:coarse), (max-width:1023px) {
  #portfolio-table-study .aux-panel .panel-close,
  #portfolio-table-study .profile-panel .panel-close,
  #portfolio-table-study .cv-download { min-height:44px; }
  #portfolio-table-study .cv-switch-option { min-height:44px; }
  #portfolio-table-study .contact-panel dd a { display:inline-block; padding:13px 0; }
  #portfolio-table-study .cv-text .cv-contact a { display:inline-block; padding:13px 0; }
}

/* 8. Work list: its one-line descriptions ran to 110 characters on a laptop. Now about 80. */
#portfolio-table-study .work-project-summary { max-width:60ch; }

/* 9. The left lead card: its "Open case" ran under the edge of the middle card. */
@media (min-width:721px) {
  #portfolio-table-study .table-scene:not(.reading) .project-card[data-slot='left'] .card-footer { right:3.2cqw; }
}

/* 10. Tablet width (721px to about 850px): the box of the name lay over the menu, so Work, CV
   and Connect could not be clicked or tapped on the table. The menu now sits above it. */
#portfolio-table-study .portfolio-nav { z-index:12; }
#portfolio-table-study .portfolio-nav .nav-links { position:relative; z-index:12; }

/* 11. Phones (12 November): "Selected work" was ivory and lighter than on a laptop, where one
   rule sets its green, its weight and its letter spacing for wide screens only. Same three here. */
@media (max-width:720px) {
  #portfolio-table-study .featured-label { color:var(--pistachio); font-weight:650; letter-spacing:.065em; }
}

/* 12. Phones (13 November): the header and the cards take the laptop's values. Five small
   differences, all older than this copy. The intro sentence was set in the display typeface and
   is now in the text typeface, as on a laptop. The role line and the tagline of a card were
   lighter. The description of a card was a paler grey. "Selected work" started 10px to the
   left of the name and of the cards. */
@media (max-width:720px) {
  #portfolio-table-study .hero-copy .hero-intro { font-family:var(--type-text); font-size:16px; line-height:1.45; }
  #portfolio-table-study .hero-copy .hero-role { font-weight:550; }
  #portfolio-table-study .project-card:not(.anchored) .project-summary { font-weight:550; }
  #portfolio-table-study .project-card:not(.anchored) .project-descriptor,
  #portfolio-table-study .project-card:not(.anchored) .project-descriptor p { color:#594854; }
  #portfolio-table-study .featured-label { margin:0 28px; }
  /* and the first paragraph of an open case was set tighter than the paragraphs of its other cards */
  #portfolio-table-study .reading .anchored .project-summary { letter-spacing:-.007em; }
}

/* 13. Phones: the same spacing on all seven cards. Each card kept 67px of empty space above its
   title (26px on a laptop) and a fixed height, so the four cards without a description stood
   half empty. Now 28px above the title, 24px before the last line, 25px under it, and a card
   is as tall as what it holds. Every card ends with "Open case", so the arrow after four of
   the titles is not shown here. */
@media (max-width:720px) {
  #portfolio-table-study .table-scene:not(.reading) .project-card[data-slot],
  #portfolio-table-study .table-scene:not(.reading) .project-card.reserve-card { height:auto; min-height:0; padding-bottom:25px; }
  #portfolio-table-study .table-scene:not(.reading) .project-card .card-meta { display:none; }
  #portfolio-table-study .table-scene:not(.reading) .project-card .project-title { margin-top:3px; }
  #portfolio-table-study .table-scene:not(.reading) .project-card .card-footer { position:static; margin-top:24px; }
  #portfolio-table-study .table-scene:not(.reading) .reserve-card .project-title::after { content:none; }
}

/* 14. Phones, inside a case: Back to the table stays on screen, so it lay over the first words
   of each card as the page moved. Once the page has moved (phone-top.js), the top of the screen
   gets a soft edge: the cards fade into the felt before they reach the button. */
@media (max-width:720px) {
  #portfolio-table-study::before {
    content:''; position:fixed; left:0; right:0; top:0; height:118px; z-index:90;
    pointer-events:none; opacity:0;
    background:linear-gradient(180deg,#2f1839 0,#2f1839 44%,rgba(47,24,57,.86) 62%,rgba(47,24,57,.45) 82%,rgba(47,24,57,0) 100%);
  }
  #portfolio-table-study[data-scrolled]:has(> .table-scene.reading)::before { opacity:1; transition:opacity 200ms ease; }
}
@media (max-width:720px) and (prefers-reduced-motion:reduce) {
  #portfolio-table-study[data-scrolled]:has(> .table-scene.reading)::before { transition:none; }
}
