/* Homepage art direction. Case studies retain their own layouts. */
.portfolio-home .hero {
  color: #f5f0e5;
  background: linear-gradient(90deg, #96b2bc09 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(#96b2bc09 1px, transparent 1px) 0 0 / 48px 48px, #102730;
}
.portfolio-home .hero::after { content: none; }
.hero-gears-stage { position: absolute; z-index: 0; inset: 0 0 0 var(--gears-clearance, 65%); overflow: hidden; pointer-events: none; contain: paint; }
.hero-gears-art { position: absolute; left: var(--gears-x, 0px); top: var(--gears-y, 0px); display: block; width: var(--gears-width, 960px); height: var(--gears-height, 960px); max-width: none; opacity: .32; pointer-events: none; }
@media (max-width: 980px) { .hero-gears-art { opacity: .25; } }
@media (max-width: 760px) { .hero-gears-stage { display: none; } }
.portfolio-home .hero-grid { padding-block: 76px; }
.portfolio-home .hero h1 { font-size: clamp(48px, 6.5vw, 88px); letter-spacing: -.06em; }
.portfolio-home .hero h1 span { color: #edaa80; }
.portfolio-home .hero .eyebrow { color: #efbd98; font-size: 13px; }
.hero-availability-date { white-space: nowrap; }
.portfolio-home .hero-specialty { color: #f5f0e5; }
.portfolio-home .hero-lede { color: #d0dce0; font-size: 17px; }
.portfolio-home .hero-facts { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); border-color: #8aa4ae80; gap: 28px; padding-top: 24px; }
.portfolio-home .hero-facts dt { color: #efbd98; font-size: 13px; }
.portfolio-home .hero-facts dd { color: #f5f0e5; font-size: 18px; font-weight: 600; line-height: 1.45; }
.hero-school { display: block; margin-top: 4px; color: #bfcfd3; font-size: 16px; font-weight: 400; }
.portfolio-home .hero-links { gap: 8px 20px; }
.portfolio-home .hero-links a { color: #d8e4e8; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; font-size: 14px; }
.portfolio-home .hero-actions { align-items: center; }
.hero-demo-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #d8e4e8; font-size: 14px; text-underline-offset: 5px; text-decoration-color: #edaa80; }
.portfolio-home .hero-links a:hover, .hero-demo-link:hover { color: #f5d4b9; }
.portfolio-home .hero a:focus-visible, .portrait-flip:focus-visible { outline: 2px solid #f5d4b9; outline-offset: 4px; }
.portfolio-home .hero .button-primary { background: #edaa80; color: #102128; }
.portfolio-home .hero .button-primary:hover { background: #f2c2a0; }
.portfolio-home .hero .button-secondary { color: #e2eaed; border-color: #8aa4ae80; }
.portfolio-home .hero .button-secondary:hover { background: #28434e; }
.portfolio-home .hero-portrait {
  outline: none;
  padding: 24px;
  border: 1px solid #c38c6e;
  border-radius: 3px;
  background:
    repeating-linear-gradient(0deg, #ffe1d112 0 1px, #572e210a 1px 2px, transparent 2px 4px),
    linear-gradient(118deg, #995c43, #cc9475 28%, #e4b39a 43%, #ba7c60 62%, #a76a4f 84%, #ca8f70);
  transform: rotate(2deg);
  box-shadow: 0 5px 14px #06161c66, inset 1px 1px 0 #ffdbbf99, inset -1px -1px 0 #683c2bb3;
}
.portfolio-home .hero-portrait::before { content: none; }
.portrait-screw { position: absolute; z-index: 1; width: 18px; height: 18px; border: 1px solid #53656a; border-radius: 50%; background: linear-gradient(145deg, #dae0da, #91a29e 55%, #617675); box-shadow: 0 1px 2px #352814b3, inset 0 0 0 1px #eef0db80; transform: rotate(var(--seat-angle, 15deg)); pointer-events: none; }
.portrait-screw::after { content: ''; position: absolute; inset: 3px; background: linear-gradient(#344244,#344244) center / 2px 100% no-repeat, linear-gradient(#344244,#344244) center / 100% 2px no-repeat; }
.portrait-screw.is-top-left { left: 3px; top: 3px; --seat-angle: 15deg; }
.portrait-screw.is-top-right { right: 3px; top: 3px; --seat-angle: 45deg; }
.portrait-screw.is-bottom-left { left: 3px; bottom: 3px; --seat-angle: 75deg; }
.portrait-screw.is-bottom-right { right: 3px; bottom: 3px; --seat-angle: 105deg; }
.hero-intro-pending .portrait-screw { opacity: 0; }
.portfolio-home .hero-portrait img { aspect-ratio: 1; }
.portrait-flip { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: #f8f7f3; color: #102128; font: inherit; perspective: 1000px; cursor: pointer; box-shadow: 0 0 0 1px #653e2d99, 0 1px 2px #54332680; }
.portrait-flip:disabled { cursor: default; opacity: 1; }
.portrait-flip-inner { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transition: transform 400ms cubic-bezier(.3,.1,.3,1); }
.portrait-flip.is-projects .portrait-flip-inner { transform: rotateY(180deg); }
.portrait-face { position: absolute; inset: 0; display: block; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(.1px); }
.portrait-back { transform: rotateY(180deg) translateZ(.1px); background: #fff; }
.portfolio-home .portrait-front img { width: 100%; height: 100%; object-fit: cover; }
.portrait-collage { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: 55% 45%; gap: 1px; height: 100%; background: #b6c4c8; }
.portrait-project { display: grid; grid-template-rows: minmax(0,1fr) auto; min-width: 0; min-height: 0; background: #fff; }
.portrait-project:first-child { grid-column: 1 / -1; }
.portfolio-home .hero-portrait .portrait-project img { display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; padding: 8px; object-fit: contain; }
.portrait-project-label { display: block; padding: 5px 7px; color: #102730; background: #edf0ed; font: 600 12px/1.4 var(--sans); text-align: left; }
.project-label-compact { display: none; }
.portrait-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.portfolio-home .workbench { background: #dfe7e5; border-bottom: 1px solid var(--line); }
.portfolio-home .workbench .section-heading { gap: 40px; margin-bottom: 36px; }
.portfolio-home .workbench h2 { font-size: clamp(34px, 4.3vw, 54px); }
.robot-project-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 5vw, 68px); margin-bottom: 40px; }
.robot-project-photo { margin: 0; background: #fff; border: 1px solid var(--line); }
.robot-project-photo a { display: block; padding: 18px; }
.robot-project-photo img { width: 100%; height: 260px; object-fit: contain; }
.robot-project-photo figcaption { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font: 500 12px/1.5 var(--mono); }
.robot-project-copy h2 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -.04em; }
.robot-project-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: 16px; margin: 20px 0 0; }
.robot-demo-intro { display: flex; gap: 32px; justify-content: space-between; align-items: start; border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 24px; }
.robot-demo-intro h3 { margin: 0; font-size: 23px; line-height: 1.3; letter-spacing: -.025em; }
.robot-demo-intro p { margin: 0; max-width: 580px; color: var(--ink-soft); font-size: 14px; }
.portfolio-home .workbench .leg-mixer { box-shadow: 12px 12px 0 #b4c4c4; }
.portfolio-home .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.portfolio-home .featured-project { border-radius: 0; }
.portfolio-home .featured-project:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.portfolio-home .featured-project:first-child .project-media { height: 100%; aspect-ratio: auto; min-height: 390px; border-bottom: 0; border-right: 1px solid var(--line); }
.portfolio-home .featured-project:first-child .project-copy { padding: 36px; }
.portfolio-home .featured-project:first-child .project-copy h3 { font-size: clamp(28px, 3vw, 36px); }
.portfolio-home .featured-project:not(:first-child) .project-copy { padding: 24px; }
.portfolio-home .featured-project:not(:first-child) .project-copy h3 { font-size: 24px; }
.portfolio-home .project-number { background: var(--navy); color: #edaa80; border-right: 1px solid #fff3; border-bottom: 1px solid #fff3; }
.portfolio-home .project-media { aspect-ratio: 4 / 3; }
.portfolio-home .selected-work .section-heading { padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.portfolio-home .experience { border-top: 5px solid #d59870; }
.portfolio-home .experience-item { border-radius: 0; }
.portfolio-home .more-work .section-heading { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.portfolio-home .contact-band { border-top: 1px solid #91a6ab55; }
@media (max-width: 980px) {
  .portfolio-home .hero-grid { padding-block: 56px; }
  .portfolio-home .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-home .featured-project:first-child { display: flex; grid-column: auto; }
  .portfolio-home .featured-project:first-child .project-media { height: auto; aspect-ratio: 4 / 3; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .portfolio-home .featured-project:first-child .project-copy { padding: 24px; }
  .portfolio-home .featured-project:first-child .project-copy h3 { font-size: 24px; }
}
@media (max-width: 760px) {
  .robot-project-intro { grid-template-columns: 1fr; gap: 28px; }
  .robot-project-photo img { height: auto; max-height: 280px; }
  .robot-demo-intro { flex-direction: column; gap: 14px; }
  .portfolio-home .hero-grid { padding-block: 32px 36px; grid-template-columns: 100px minmax(0,1fr); gap: 14px 22px; }
  .portfolio-home .hero-copy { display: contents; }
  .portfolio-home .hero-copy > * { grid-column: 1 / -1; }
  .portfolio-home .hero-copy > .eyebrow { grid-column: 2; grid-row: 1; margin: 0; align-self: end; font-size: 12px; }
  .portfolio-home .hero h1 { grid-column: 2; grid-row: 2; align-self: start; font-size: clamp(34px, 9vw, 48px); margin: 0; }
  .portfolio-home .hero-portrait { grid-column: 1; grid-row: 1 / 3; width: 100px; margin: 0; align-self: center; transform: none; padding: 10px; }
  .portrait-screw { width: 10px; height: 10px; }
  .portrait-screw::after { inset: 2px; background-size: 1px 100%,100% 1px; }
  .portrait-screw.is-top-left { left: 0; top: 0; }
  .portrait-screw.is-top-right { right: 0; top: 0; }
  .portrait-screw.is-bottom-left { left: 0; bottom: 0; }
  .portrait-screw.is-bottom-right { right: 0; bottom: 0; }
  .portfolio-home .hero-portrait::before { inset: -10px; }
  .portrait-collage { grid-template-columns: 1fr; grid-template-rows: 1fr; gap: 0; }
  .portrait-project { display: none; }
  .portrait-project.is-mobile-project { display: grid; grid-column: 1; grid-row: 1; }
  .portrait-project-label { padding: 3px 2px; font-size: 12px; text-align: center; }
  .project-label-wide { display: none; }
  .project-label-compact { display: inline; }
  .portfolio-home .hero-portrait .portrait-project img { padding: 3px; }
  .portfolio-home .hero-specialty { margin-top: 12px; font-size: 21px; }
  .portfolio-home .hero-lede { margin: 0; font-size: 16px; }
  .portfolio-home .hero-actions { margin-top: 8px; gap: 10px; }
  .portfolio-home .hero-actions .button { min-height: 44px; padding: 12px 16px; }
  .portfolio-home .hero-links { margin-top: 2px; gap: 8px 16px; }
  .portfolio-home .hero-facts { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); margin-top: 10px; padding-top: 20px; gap: 18px; }
  .portfolio-home .hero-facts div { display: block; }
  .portfolio-home .hero-facts dd { margin-top: 8px; font-size: 16px; }
  .portfolio-home .hero::after { content: none; }
  .portfolio-home .featured-grid { grid-template-columns: 1fr; }
  .portfolio-home .workbench .leg-mixer { box-shadow: 5px 5px 0 #b4c4c4; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-home .hero-portrait { transform: none; }
  .hero-intro-pending .portrait-screw { opacity: 1; }
}
