/* Chronological project archive and long-form project stories. */
.iter-tile { background: linear-gradient(135deg, #b9dff2, #c7d4ef); }
.pinn-tile { background: linear-gradient(135deg, #d7e4f4, #b8c8e8); }
.herve-tile { background: linear-gradient(135deg, #c9e8e4, #b9dff2); }
.lawtie-tile { background: linear-gradient(135deg, #d9cff8, #f1cfdf); }
.science-society-tile { background: linear-gradient(135deg, #c8dced, #e6ddf4); }
.rise-tile { background: linear-gradient(135deg, #ffd4a8, #f5a897); }
.porte-tile { background: linear-gradient(135deg, #ead8bf, #efc8bb); }
.astronomy-tile { background: linear-gradient(135deg, #c8d9ee, #d7cee9); }
.project-tile.pinned-project {
  --tile-color: #d9cff8;
  grid-column: span 2;
  min-height: 310px;
  border-color: #6d57a6;
  background:
    radial-gradient(circle at 86% 18%,rgba(255,235,139,.78),transparent 25%),
    linear-gradient(135deg,#d9cff8,#f3cddd 58%,#f8df84) !important;
  box-shadow: 10px 13px 0 rgba(86,65,139,.18),0 22px 48px rgba(77,57,128,.13) !important;
}
.project-pin-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 9px 13px;
  border: 1px solid rgba(79,56,132,.26);
  border-radius: 999px;
  color: #4f3884;
  background: rgba(255,255,255,.7);
  box-shadow: 0 8px 18px rgba(71,50,119,.1);
  font: normal 750 10px/1 var(--mono);
  letter-spacing: .055em;
  text-transform: uppercase;
}
.project-tile.pinned-project::after { content: ""; }
.project-tile.pinned-project:hover,
.project-tile.pinned-project:focus-visible {
  box-shadow: 14px 18px 0 rgba(86,65,139,.2),0 30px 64px rgba(77,57,128,.18) !important;
}
.project-tile > span {
  padding: 9px 12px;
  border: 1px solid rgba(7,29,73,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .035em;
}

.project-selector .selector-heading h2 {
  max-width: 700px;
  font-size: clamp(34px,4.6vw,58px);
  line-height: .98;
  letter-spacing: -.05em;
}

.project-panel { align-items: start; }
.project-description .eyebrow {
  display: block;
  color: #315a72;
  line-height: 1.55;
}
.project-description p {
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.82;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.project-actions .button { gap: 18px; }
.project-video-window {
  min-height: 0;
  background: #c7d4ef;
}
.project-video-window iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #13263d;
}
.iter-panel.is-active {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
}
.iter-window { background: #c7d4ef; }
.pinn-window { background: #cbd9ed; }
.pinn-window .window-canvas { background: linear-gradient(145deg,#e5edf8,#b8c9e4); }
.pinn-equation { color: #34527e; font: 650 clamp(22px,3vw,38px) var(--mono); letter-spacing: -.04em; }
.herve-window { background: #c9e8e4; }
.science-society-window { background: #d8d4ec; }
.porte-window { background: #ead8bf; }
.astronomy-window { background: #c8d9ee; }
.lawtie-story {
  margin-top: 70px;
  padding: 54px clamp(24px, 5vw, 70px) 10px;
  border-top: 1px solid rgba(7, 26, 53, .18);
}
.lawtie-story h2 {
  max-width: 840px;
  margin: 0 0 28px;
  font-size: clamp(42px, 5.8vw, 76px);
  line-height: .94;
  letter-spacing: -.06em;
}
.lawtie-story p {
  max-width: 1080px;
  margin-bottom: 0;
}

@media (max-width: 950px) {
  .iter-panel.is-active { grid-template-columns: 1fr; }
  .project-description p { font-size: 16px; }
  .lawtie-story {
    margin-top: 48px;
    padding-inline: 10px;
  }
}

@media (max-width: 620px) {
  .project-tile.pinned-project { grid-column: auto; min-height: 250px; }
  .project-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .project-actions .button { width: 100%; }
  .lawtie-story { padding-top: 38px; }
  .project-video-window iframe { min-height: 220px; }
}

/* Text-first project details: title, then a readable multi-paragraph story. */
.project-text-detail-page .project-detail-area {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 5vw 130px;
}
.project-text-detail-page .text-project-panel.is-active {
  display: block;
  min-height: 0;
}
.project-text-detail-page .project-story {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(42px,7vw,86px);
  border: 1px solid rgba(57,82,119,.2);
  border-radius: 26px;
  color: #2e435f;
  background:
    linear-gradient(rgba(76,105,148,.05) 1px,transparent 1px) 0 0 / 42px 42px,
    #f1f5fa;
  box-shadow: 0 24px 64px rgba(49,72,107,.1);
}
.project-text-detail-page .project-story .eyebrow {
  display: block;
  margin-bottom: 30px;
  color: #526e93;
  line-height: 1.55;
}
.project-text-detail-page .project-story h1 {
  max-width: 760px;
  margin: 0 0 30px;
  color: #253e65;
  font-size: clamp(27px,3.2vw,39px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.project-text-detail-page .project-story p {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(14px,1.15vw,16px);
  line-height: 1.72;
}
.project-text-detail-page .project-story strong {
  color: #264f8b;
  font-weight: 750;
  background: linear-gradient(transparent 66%,rgba(104,148,210,.25) 66%);
}
.project-text-detail-page .project-actions { margin-top: 38px; }
.project-text-detail-page .project-impact {
  max-width: 820px;
  margin: 32px 0 8px;
  padding: 22px 24px;
  border-left: 4px solid #7095bd;
  border-radius: 0 15px 15px 0;
  background: #e4edf6;
}
.project-text-detail-page .project-impact h2 {
  margin: 0 0 10px;
  color: #2d5379;
  font: 720 13px/1.2 var(--mono);
  letter-spacing: .055em;
  text-transform: uppercase;
}
.project-text-detail-page .project-impact p {
  margin: 0;
  color: #38536e;
  font-size: 14px;
  line-height: 1.65;
}
.project-story blockquote {
  margin: 0 0 28px;
  padding: 22px 26px;
  border-left: 4px solid #df7d5e;
  border-radius: 0 15px 15px 0;
  color: #6b3d35;
  background: #fff0e6;
  font: 650 18px/1.55 var(--serif);
}
.video-preview { position: relative; display: block; max-width: 820px; margin-top: 30px; overflow: hidden; border-radius: 18px; background: #172b48; }
.video-preview img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .35s ease, opacity .35s ease; }
.video-preview span { position: absolute; left: 18px; bottom: 18px; padding: 11px 15px; border-radius: 999px; color: white; background: rgba(15,31,54,.86); font: 650 12px var(--mono); }
.video-preview:hover img { transform: scale(1.025); opacity: .86; }
.project-media-pair { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-top: 30px; }
.project-media-pair .video-preview { margin: 0; }
.story-preview-card { display: flex; min-height: 100%; flex-direction: column; justify-content: center; padding: clamp(28px,4vw,48px); border: 1px solid #e8a37d; border-radius: 18px; color: #713d31; background: linear-gradient(145deg,#fff4e8,#ffd8c0); box-shadow: inset 0 0 0 8px rgba(255,255,255,.35); }
.story-preview-card small { font: 750 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.story-preview-card strong { margin: 18px 0 12px; font-size: clamp(22px,2.5vw,32px); line-height: 1.04; }
.story-preview-card p { color: #765247; font-size: 14px; }
.story-preview-card span { margin-top: auto; padding-top: 24px; font: 750 12px var(--mono); }
.project-media-stack { display:grid; gap:22px; margin-top:30px; }
.project-media-stack .video-preview { width:100%; max-width:none; margin:0; }
.website-preview-shell { overflow:hidden; border:1px solid rgba(106,124,166,.42); border-radius:20px; background:#fff; box-shadow:0 24px 60px rgba(30,48,88,.17); }
.website-preview-bar { display:grid; grid-template-columns:auto 1fr auto; gap:16px; align-items:center; min-height:52px; padding:10px 16px; color:#3e526f; background:linear-gradient(90deg,#edf3fb,#f6efff,#fff0e7); font:650 11px var(--mono); }
.website-preview-bar > span { display:flex; gap:6px; }
.website-preview-bar i { width:10px; height:10px; border-radius:50%; background:#fd8a7e; }
.website-preview-bar i:nth-child(2) { background:#f3c45c; }
.website-preview-bar i:nth-child(3) { background:#6fd4b1; }
.website-preview-bar a { color:#5a4e9b; font-weight:750; }
.website-preview-shell iframe { display:block; width:100%; height:min(720px,72vh); border:0; background:#fff; }
@media(max-width:680px){.website-preview-bar{grid-template-columns:auto 1fr}.website-preview-bar>a{grid-column:1/-1}.website-preview-shell iframe{height:560px}}
.project-gallery { display: grid; gap: 14px; margin-top: 30px; }
.project-gallery-three { grid-template-columns: repeat(3,1fr); }
.project-gallery img { width: 100%; height: 280px; border-radius: 16px; object-fit: cover; }
.project-feature-link { position: relative; display: block; margin-top: 30px; }
.project-feature-image { display: block; width: 100%; margin: 0; border-radius: 18px; box-shadow: 0 20px 45px rgba(35,54,83,.13); transition: transform .3s ease; }
.project-feature-link > span { position: absolute; right: 18px; bottom: 18px; padding: 10px 14px; border-radius: 999px; color: white; background: rgba(23,43,72,.88); font: 700 11px var(--mono); }
.project-feature-link:hover .project-feature-image { transform: translateY(-5px); }
.lawtie-computer { grid-template-columns: 1fr; gap: 24px; width: min(1180px,calc(100vw - 70px)); margin: 48px 50% 0; transform: translateX(-50%); }
.lawtie-computer .laptop { max-width: 1080px; }
.lawtie-computer .laptop-screen { height: min(62vw,650px); aspect-ratio: auto; }
.lawtie-computer .laptop-screen iframe { width: 100%; height: 100%; transform: none; border: 0; }
.lawtie-computer .computer-instructions { max-width: 1080px; margin: 0 auto; }
.lawtie-computer .computer-instructions p { font-size: 14px; line-height: 1.6; }
.password-dialog { width: min(560px,calc(100% - 34px)); padding: 34px; border: 1px solid #d6a08e; border-radius: 22px; color: #3d4254; background: #fff7f0; box-shadow: 0 30px 100px rgba(22,31,49,.28); }
.password-dialog::backdrop { background: rgba(16,28,47,.55); backdrop-filter: blur(4px); }
.password-dialog h2 { margin: 0 0 8px; color: #7b493d; font-size: 27px; }
.password-dialog label { display: block; margin: 24px 0 9px; font: 650 12px var(--mono); }
.password-dialog textarea { width: 100%; padding: 14px; border: 1px solid #d2a18d; border-radius: 12px; resize: vertical; background: white; font: inherit; }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: #7b493d; font-size: 28px; cursor: pointer; }
@media (max-width: 680px) {
  .project-text-detail-page .project-detail-area { padding-inline: 18px; }
  .project-text-detail-page .project-story { padding: 34px 23px; border-radius: 20px; }
  .project-text-detail-page .project-story h1 { margin-bottom: 26px; font-size: clamp(26px,8.5vw,34px); }
  .project-media-pair,.project-gallery-three,.lawtie-computer { grid-template-columns: 1fr; }
  .project-gallery img { height: auto; }
}
