/* Experience / Education / Achievements / Projects sections and header links,
   inserted by sections.js in place of the single "The path so far" timeline. */

/* Hide the original timeline and header link with CSS only, so React's DOM is untouched. */
main section:has([id="resume"], [id="resume-original"]):not(.gs-section) { display: none; }
header nav.lg\:flex:not(.gs-nav) { display: none !important; }

/* Theme toggle: the original bumpy sun looked like a settings gear. Hide its icons and draw a
   clear sun (shown in dark mode) or moon (shown in light mode), as before. */
header button[aria-label="Switch to Light theme"] > span > svg,
header button[aria-label="Switch to Dark theme"] > span > svg { display: none; }
header button[aria-label="Switch to Light theme"] > span::after,
header button[aria-label="Switch to Dark theme"] > span::after {
  content: ""; width: 16px; height: 16px; background-color: currentColor;
  -webkit-mask: var(--gs-theme-icon) center / contain no-repeat;
  mask: var(--gs-theme-icon) center / contain no-repeat;
}
header button[aria-label="Switch to Light theme"] {
  --gs-theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E");
}
header button[aria-label="Switch to Dark theme"] {
  --gs-theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E");
}

/* Top rolling strip: warmer, brighter and slightly larger so it reads at a glance. */
.construction-banner {
  height: 36px;
  background: #d360001f;
  background: color-mix(in oklab, var(--color-primary) 14%, var(--color-surface));
  color: var(--color-text-default);
  border-bottom-color: color-mix(in oklab, var(--color-primary) 35%, transparent);
}
.construction-banner [data-banner-item] { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; }
.construction-banner .marquee-track { animation-duration: 1500s; } /* originally 50s */

/* Desktop: the "Introduction" link in the centre menu replaces the G — S home logo on the left.
   (Phones keep the centred logo, since the menu there is a slide-out sheet.) */
header a[aria-label="Home"].lg\:inline-flex { display: none !important; }

.gs-nav a { cursor: pointer; }
.gs-nav a.is-active { color: var(--color-text-default); }

.gs-section { scroll-margin-top: 88px; }
.gs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.gs-head-text { display: flex; flex-direction: column; gap: 8px; }

.gs-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .gs-grid.two { grid-template-columns: 1fr 1fr; } }

.gs-card { display: flex; flex-direction: column; gap: 16px; height: 100%; min-width: 0; }
.gs-grid > *, .gs-card > * { min-width: 0; }
.gs-card-top { display: flex; align-items: center; gap: 14px; }
.gs-card-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gs-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
/* Every card gets a soft orange border that turns full orange on hover; featured cards
   (Achievements, Projects) stay full orange so they still lead. */
.gs-card {
  border-color: #d3600066;
  border-color: color-mix(in oklab, var(--color-primary) 40%, transparent);
  transition: border-color 200ms ease;
}
.gs-card:hover, .gs-card.featured { border-color: var(--color-primary); }

/* Logo tiles: one rectangle size for every logo; the whole logo always fits inside. */
.gs-logo {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 104px; height: 64px; padding: 6px 8px;
  border-radius: var(--radius-field, 8px); overflow: hidden;
  border: 1px solid var(--color-border-default); background: #fff;
}
.gs-logo.dark { background: #000; }
.gs-logo.fill { padding: 0; }
.gs-logo.fill img { object-fit: cover; }
.gs-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 480px) { .gs-logo { width: 88px; height: 56px; } }

.gs-tag {
  display: inline-flex; align-items: center; width: fit-content;
  padding: 2px 10px; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-primary); border: 1px solid var(--color-primary);
}

.gs-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* EY designations: orange pills like the achievement tags. */
.gs-role {
  display: inline-flex; align-items: center;
  padding: 4px 14px; border-radius: 999px; line-height: 1.25;
  border: 1px solid var(--color-primary); color: var(--color-primary);
}
.gs-role b { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.gs-roles .arrow { color: var(--color-primary); font-size: 0.8125rem; }

.gs-group { display: flex; flex-direction: column; gap: 8px; }
.gs-group-title { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-faint); }
.gs-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gs-list li { position: relative; padding-left: 18px; color: var(--color-text-muted); line-height: 1.6; }
.gs-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.7em;
  width: 6px; height: 6px; border-radius: 999px; background: var(--color-primary);
}
.gs-list b { color: var(--color-text-default); font-weight: 600; }

/* Achievements: one per row, card on the left and a photo on the right (stacked on phones). */
.gs-features { display: flex; flex-direction: column; gap: 20px; }
.gs-feature { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: stretch; }
/* Desktop: the card fills the row; the photo box's width is set by sections.js so it keeps
   the Governance photo's shape. Phones: card above, photo below at that same shape. */
@media (min-width: 768px) { .gs-feature { grid-template-columns: minmax(0, 1fr) auto; } }
.gs-feature > * { min-width: 0; }
.gs-feature-media {
  position: relative; overflow: hidden; aspect-ratio: 1400 / 1121;
  border-radius: var(--radius-card, 12px); border: 1px solid var(--color-border-default);
  background: var(--color-surface-raised);
}
@media (min-width: 768px) { .gs-feature-media { aspect-ratio: auto; } }
.gs-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gs-feature-media.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-style: dashed; color: var(--color-text-faint); font-size: 0.8125rem;
}

/* Rolling strip of client logos inside the EY card. */
.gs-clients {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.gs-clients-track { display: flex; width: max-content; animation: gs-clients-roll 30s linear infinite; }
.gs-clients:hover .gs-clients-track { animation-play-state: paused; }
.gs-clients-group { display: flex; flex-shrink: 0; gap: 12px; padding-right: 12px; }
.gs-client {
  display: flex; align-items: center; justify-content: center;
  width: 120px; height: 64px; padding: 8px 10px; flex-shrink: 0;
  border-radius: var(--radius-field, 8px); background: #fff;
  border: 1px solid var(--color-border-default);
}
.gs-client img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gs-client.fill { padding: 0; }
.gs-client.fill img { object-fit: cover; }
@keyframes gs-clients-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 767px) { .gs-client { width: 100px; height: 56px; } }
@media (prefers-reduced-motion: reduce) {
  .gs-clients { overflow-x: auto; }
  .gs-clients-track { animation: none; }
  .gs-clients-group[aria-hidden="true"] { display: none; }
}

.gs-stat { font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }

/* Skills: big heading with the 3D ball cluster (skills.js) floating over it. */
.gs-skills-stage {
  position: relative; height: clamp(380px, 72vh, 680px); margin-top: 8px;
  display: flex; align-items: center; justify-content: center;
  touch-action: pan-y; overflow: hidden; cursor: none;
}
.gs-skills-title {
  position: absolute; top: 16%; left: 0; right: 0; margin: 0; text-align: center;
  font-size: clamp(3rem, 11vw, 9rem); font-weight: 500; line-height: 1;
  letter-spacing: -0.02em; text-transform: uppercase; color: var(--color-text-default);
  pointer-events: none;
}
.gs-skills-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.gs-skills-stage.no-3d { cursor: auto; height: auto; padding: 24px 0; }
.gs-skills-stage.no-3d .gs-skills-title { position: static; }
.gs-skills-dot {
  position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 999px;
  background: var(--color-text-default); box-shadow: 0 0 22px 4px color-mix(in oklab, var(--color-text-default) 35%, transparent);
  opacity: 0; transition: opacity 200ms ease; pointer-events: none; z-index: 2;
}
.gs-skills-dot.on { opacity: 0.85; }
@media (hover: none) { .gs-skills-stage { cursor: auto; } .gs-skills-dot { display: none; } }
.gs-skills-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.gs-skills-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gs-skills-row .gs-group-title { min-width: 88px; }
.gs-skill-chip {
  padding: 4px 12px; border-radius: 999px; font-size: 0.8125rem; color: var(--color-text-muted);
  border: 1px solid color-mix(in oklab, var(--color-primary) 40%, transparent);
}


/* "Processes I have reviewed" in the EY card: icon tiles, each in one of 8 soft colours. */
.gs-processes {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.gs-process {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius-field, 10px); border: 1px solid var(--color-border-default);
  background: var(--color-surface-raised, #fff);
  font-size: 0.8125rem; line-height: 1.3; color: var(--color-text-default);
}
.gs-process-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); background: var(--tile);
}
.gs-process-icon svg { width: 28px; height: 28px; }
.gs-process-icon .t { fill: var(--fill); }
.gs-process-icon .b { fill: var(--tile); }
.gs-pc0 { --ink: #c2541b; --fill: #f6b48a; --tile: #fdede2; }
.gs-pc1 { --ink: #1f7a62; --fill: #8fd3ba; --tile: #e3f4ec; }
.gs-pc2 { --ink: #7b3f92; --fill: #d3a9e2; --tile: #f4eaf8; }
.gs-pc3 { --ink: #a86b00; --fill: #f2cb6b; --tile: #fdf3dc; }
.gs-pc4 { --ink: #2c5ea6; --fill: #9cbdeb; --tile: #e6effb; }
.gs-pc5 { --ink: #b23a5e; --fill: #f2a6bd; --tile: #fce8ee; }
.gs-pc6 { --ink: #4f7a1f; --fill: #b7d88c; --tile: #eef6e2; }
.gs-pc7 { --ink: #137a93; --fill: #8ccfe0; --tile: #e2f4f8; }
/* Dark mode: light lines, a deeper fill and a dark tinted tile in the same colour. */
html[data-theme=product-dark] .gs-process-icon {
  color: var(--fill);
  background: color-mix(in oklab, var(--ink) 24%, var(--color-surface));
}
html[data-theme=product-dark] .gs-process-icon .t { fill: color-mix(in oklab, var(--ink) 75%, transparent); }
html[data-theme=product-dark] .gs-process-icon .b { fill: color-mix(in oklab, var(--ink) 24%, var(--color-surface)); }
/* Phones: two columns that may shrink below their longest word, with smaller icons. */
@media (max-width: 480px) {
  .gs-processes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .gs-process { min-width: 0; gap: 8px; padding: 8px; font-size: 0.75rem; overflow-wrap: anywhere; }
  .gs-process-icon { width: 36px; height: 36px; border-radius: 9px; }
  .gs-process-icon svg { width: 22px; height: 22px; }
}

/* The processes grid stays closed until the button under the client strip is clicked. */
.gs-processes-wrap > summary { list-style: none; }
.gs-processes-wrap > summary::-webkit-details-marker { display: none; }
/* Lettering matches the "Companies I have worked with" label; centred under the strip. */
.gs-processes-btn {
  display: flex; align-items: center; gap: 8px; width: fit-content; margin: 0 auto; cursor: pointer;
  padding: 8px 18px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-primary); border: 1px solid var(--color-primary);
  transition: background-color 150ms ease;
}
.gs-processes-btn:hover { background: color-mix(in oklab, var(--color-primary) 10%, transparent); }
.gs-processes-btn svg { transition: transform 200ms ease; }
.gs-processes-wrap[open] .gs-processes-btn svg { transform: rotate(180deg); }
.gs-processes-wrap .when-open, .gs-processes-wrap[open] .when-closed { display: none; }
.gs-processes-wrap[open] .when-open { display: inline; }
.gs-processes-wrap[open] .gs-processes { margin-top: 14px; animation: gs-fade-in 250ms ease; }
@keyframes gs-fade-in { from { opacity: 0; transform: translateY(-4px); } }

/* Solutions: deck cards. The cover slide fills the photo box (anchored left, where the title
   is) and opens the slide viewer, like the "View deck" button. */
.gs-deck-cover { padding: 0; cursor: pointer; font: inherit; }
.gs-deck-cover img { object-position: left center; transition: transform 300ms ease; }
.gs-deck-cover:hover img { transform: scale(1.03); }
.gs-deck-badge {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgb(0 0 0 / 0.65); color: #fff; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em;
}
.gs-deck-team { margin: 0; font-size: 0.8125rem; color: var(--color-text-muted); }
.gs-deck-btn {
  width: fit-content; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-on-primary, #fff); background: var(--color-primary); border: 1px solid var(--color-primary);
  transition: opacity 150ms ease;
}
.gs-deck-btn:hover { opacity: 0.88; }
.gs-deck-link {
  width: fit-content; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 0.875rem; font-weight: 600; color: var(--color-primary);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}

/* Slide viewer (a modal <dialog>). */
.gs-deck {
  position: fixed; inset: 0; margin: auto; height: fit-content;
  width: min(1200px, 96vw); max-width: none; max-height: 96vh; padding: 0; border: 0;
  border-radius: 14px; background: #0f0f10; color: #fff; overflow: hidden;
}
.gs-deck::backdrop { background: rgb(0 0 0 / 0.75); backdrop-filter: blur(4px); }
.gs-deck-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.gs-deck-title { margin: 0; flex: 1; font-size: 0.875rem; font-weight: 500; }
.gs-deck-count { font-size: 0.8125rem; color: rgb(255 255 255 / 0.65); font-variant-numeric: tabular-nums; }
.gs-deck-close, .gs-deck-nav {
  border: 0; cursor: pointer; color: #fff; background: rgb(255 255 255 / 0.12);
  border-radius: 999px; display: grid; place-items: center; transition: background 150ms ease;
}
.gs-deck-close { width: 32px; height: 32px; font-size: 0.9rem; }
.gs-deck-close:hover, .gs-deck-nav:hover:not(:disabled) { background: rgb(255 255 255 / 0.25); }
.gs-deck-stage { position: relative; background: #000; }
.gs-deck-stage img { display: block; width: 100%; height: auto; max-height: calc(96vh - 52px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.gs-deck-nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; font-size: 1.75rem; line-height: 1;
  background: rgb(0 0 0 / 0.45);
}
.gs-deck-nav.prev { left: 10px; }
.gs-deck-nav.next { right: 10px; }
.gs-deck-nav:disabled { opacity: 0.25; cursor: default; }
@media (max-width: 640px) { .gs-deck-nav { width: 36px; height: 36px; font-size: 1.4rem; } }
.gs-deck.single .gs-deck-nav, .gs-deck.single .gs-deck-count { display: none; }
.gs-deck-full { font-size: 0.8125rem; color: rgb(255 255 255 / 0.8); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.gs-deck-full:hover { color: #fff; }
.gs-deck-cover img { object-position: left top; }
/* Briefly highlights a solution card reached from an "See the winning solution" link. */
.gs-flash .gs-card { animation: gs-flash 1.6s ease 0.4s; }
@keyframes gs-flash { 30% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-primary) 45%, transparent); } }
/* Solutions rows: the preview shows the whole slide. Phones: a 16:9 box under the card.
   Desktop: the box stretches to the card's height and the slide sits centred inside it
   on white (the slide's own background), so both sides line up top and bottom. */
.gs-deck-row .gs-feature-media.gs-deck-cover { aspect-ratio: 16 / 9; width: 100%; background: #fff; }
.gs-deck-row .gs-deck-cover img { object-fit: contain; object-position: center; }
@media (min-width: 768px) {
  .gs-feature.gs-deck-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
  .gs-deck-row .gs-feature-media.gs-deck-cover { aspect-ratio: auto; height: 100%; }
}
