/* Realizace page: a calm heading, then every aquarium as one wide card, photo left and its story right.
   Same surface, hairlines and type scale as the homepage cards. */
.projects-head { padding-top: clamp(28px, 3.4vw, 52px); padding-bottom: 20px; font-family: Satoshi, Arial, sans-serif; }
.projects-head h1 { max-width: none; font-family: Satoshi, Arial, sans-serif; font-size: clamp(40px, 4.4vw, 66px); font-weight: 500; letter-spacing: -.04em; line-height: 1.06; }
.projects-head p { max-width: 560px; margin: 10px 0 0; color: #a9a9a7; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.45; }

.projects-list { display: grid; gap: 16px; padding-bottom: var(--section-space); font-family: Satoshi, Arial, sans-serif; }
.project-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); padding: 10px; border: 1px solid #ffffff1a; border-radius: 10px; background: #18191a; }
/* Gallery: one photo at a time in a scroll-snap track; the last slide is the way into the story. */
.project-gallery { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 6px; background: #131415; user-select: none; -webkit-user-select: none; }
.project-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.project-track::-webkit-scrollbar { display: none; }
.project-slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; overflow: hidden; }
.project-slide img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
/* Last slide: the sharp photo shaded from below, then label, one sentence and the way into the story,
   bottom left like the closing call to action. The copy sits above the click zones; only the button is a link. */
.project-slide-story { display: flex; align-items: flex-end; }
.project-slide-story::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, #131415f2 0%, #131415b3 42%, #13141533 100%); }
.project-story-copy { position: relative; z-index: 3; padding: 0 32px 46px; pointer-events: none; }
.project-story-copy p { max-width: none; margin: 0 0 12px; color: #c9c9c5; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.project-story-copy h3 { max-width: 15em; margin: 0; color: #f5f5f0; font-size: clamp(22px, 2.1vw, 32px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.project-story-link { display: inline-block; margin-top: 18px; padding-bottom: 3px; border-bottom: 1px solid #ffffff73; color: #f5f5f0; font-size: 14px; pointer-events: auto; transition: border-color .4s; }
.project-story-link:hover, .project-story-link:focus-visible { border-color: #f5f5f0; }

.project-progress { position: absolute; bottom: 14px; left: 50%; z-index: 2; display: flex; gap: 5px; transform: translateX(-50%); filter: drop-shadow(0 0 3px #0000008c); pointer-events: none; }
.project-progress i { width: 14px; height: 2px; border-radius: 2px; background: #ffffff73; transition: background .4s, width .4s; }
.project-progress i.is-on { width: 24px; background: #f5f5f0; }
/* Invisible click zones on the left and right third; hidden at the ends so the story link stays clickable. */
.project-step { position: absolute; top: 0; bottom: 0; z-index: 1; width: 30%; padding: 0; border: 0; background: none; }
.project-step { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.project-prev { left: 0; }
.project-next { right: 0; }
.project-step[aria-disabled="true"] { cursor: default; }
/* Hovering a side reveals a small round arrow at that edge, as on Airbnb; never at the ends, never on touch. */
.project-step span { position: absolute; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f5f5f0eb; box-shadow: 0 2px 12px #00000040; opacity: 0; transform: translateY(-50%) scale(.9); transition: opacity .25s, transform .25s; }
.project-prev span { left: 14px; }
.project-next span { right: 14px; }
.project-step svg { width: 14px; height: 14px; fill: none; stroke: #131415; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.project-step:hover span, .project-step:focus-visible span { opacity: 1; transform: translateY(-50%) scale(1); }
.project-step[aria-disabled="true"] span { display: none; }
@media (hover: none) { .project-step span { display: none; } }
@media (prefers-reduced-motion: reduce) { .project-step span { transition: none; } }
.project-step:focus-visible { outline: none; }
.project-step:focus-visible span { outline: 1px solid #f5f5f0; outline-offset: 3px; }

.project-body { display: flex; flex-direction: column; min-width: 0; padding: 22px 26px 16px 38px; }
.project-kind { max-width: none; margin: 0 0 12px; color: #8f8f8d; font-size: 10px; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
/* Aquarium names in the brand typeface, as on the homepage. */
.project-body h2 { margin: 0; font-family: Astronoma, Arial, sans-serif; font-size: clamp(30px, 2.8vw, 44px); font-weight: 700; letter-spacing: .01em; line-height: 1; text-transform: uppercase; }
.project-body h2 a { text-decoration: underline 2px transparent; text-underline-offset: 7px; transition: text-decoration-color .4s; }
.project-body h2 a:hover, .project-body h2 a:focus-visible { text-decoration-color: #f5f5f0; }
/* The story in one line, between the name and the paragraph. */
.project-subtitle { max-width: 18em; text-wrap: balance; margin: 10px 0 0; color: #f5f5f0; font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -.025em; line-height: 1.22; }

/* Three points about the aquarium: a short hairline instead of a bullet, no extra circles. */
/* The points float in the middle of the free space between the subtitle and the facts. */
.project-points { display: grid; gap: 8px; margin: auto 0; padding: 24px 0; list-style: none; }
.project-points li { position: relative; padding-left: 22px; color: #d6d6d1; font-size: 14px; line-height: 1.45; }
.project-points li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 1px; background: #8f8f8d; }
.project-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 16px 0; margin: 0; }
.project-foot { display: flex; align-items: center; min-height: 49px; margin-top: 26px; }
.project-foot .pill { font-size: 13px; }
.project-pending { color: #8f8f8d; font-size: 13px; }
.project-facts div { padding: 12px 22px 0; border-top: 1px solid #ffffff14; border-left: 1px solid #ffffff14; }
.project-facts div:first-child { padding-left: 0; border-left: 0; }
.project-facts dt { margin-bottom: 5px; color: #8f8f8d; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.project-facts dd { margin: 0; color: #e9e9e4; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }


/* History: earlier and smaller work as a dated list, newest first. Rows stay light so the list can keep growing. */
.projects-history { padding-bottom: var(--section-space); font-family: Satoshi, Arial, sans-serif; }
.history-heading { margin-bottom: 20px; }
.history-heading h2 { max-width: none; font-family: Satoshi, Arial, sans-serif; font-size: clamp(34px, 3.2vw, 50px); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; }
.history-heading p { max-width: 620px; margin: 8px 0 0; color: #a9a9a7; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.45; }
.history-list { margin: 0; padding: 6px 28px; border: 1px solid #ffffff1a; border-radius: 10px; background: #18191a; list-style: none; }
.history-row { display: grid; grid-template-columns: 96px 160px minmax(0, 1fr) 170px; align-items: center; gap: 28px; padding: 20px 0; border-bottom: 1px solid #ffffff14; }
.history-row:last-child { border-bottom: 0; }
.history-year { max-width: none; margin: 0; color: #f5f5f0; font-size: clamp(22px, 1.8vw, 28px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.history-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #131415; }
.history-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Before/after: the "after" shot is clipped from the divide to the right; an invisible range input on top drags it. */
.history-compare { position: relative; width: 100%; height: 100%; --pos: 50%; }
.history-compare img { position: absolute; inset: 0; }
.history-after { clip-path: inset(0 0 0 var(--pos)); }
.history-divide { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #f5f5f0; pointer-events: none; }
.history-divide::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: #f5f5f0; transform: translate(-50%, -50%); }
.history-tag { position: absolute; bottom: 6px; padding: 3px 6px; border-radius: 999px; background: #131415cc; color: #e9e9e4; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.history-tag-before { left: 6px; }
.history-tag-after { right: 6px; }
.history-compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.history-photo:has(input:focus-visible) { outline: 1px solid #f5f5f0; outline-offset: 3px; }
.history-photo > span { color: #6f6f6c; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.history-text h3 { margin: 0; color: #f5f5f0; font-size: clamp(18px, 1.4vw, 21px); font-weight: 400; letter-spacing: -.02em; line-height: 1.25; }
.history-text p { max-width: 40em; margin: 6px 0 0; color: #a4a4a1; font-size: 14px; line-height: 1.55; }
.history-kind { max-width: none; margin: 0; color: #8f8f8d; font-size: 10px; letter-spacing: .13em; text-align: right; text-transform: uppercase; }

@media (max-width: 1000px) and (min-width: 761px) {
  .projects-list { gap: 12px; }
  .project-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: 8px; }
  .project-gallery { aspect-ratio: auto; min-height: 100%; }
  .project-body { padding: 16px 14px 10px 24px; }
  .project-points { padding-block: 16px; gap: 6px; }
  .project-points li { font-size: 13px; }
  .project-facts div { padding-inline: 14px; }
  .project-facts dd { font-size: 14px; }
  .history-list { padding: 4px 20px; }
  .history-row { grid-template-columns: 64px 128px minmax(0, 1fr); gap: 20px; }
  .history-kind { display: none; }
}
@media (max-width: 760px) {
  .projects-head { padding-top: 20px; padding-bottom: 18px; }
  .projects-head h1 { font-size: 38px; }
  .projects-head p { font-size: 15px; }
  .projects-list { gap: 10px; }
  .project-row { display: block; padding: 7px 7px 18px; border-radius: 9px; }
  .project-body { padding: 18px 9px 0; }
  .project-body h2 { font-size: 30px; }
  .project-points { padding-block: 20px; }
  .project-facts div { padding-inline: 14px; }
  .project-facts dd { font-size: 14px; }
  .project-step { width: 22%; }
  .project-gallery { aspect-ratio: 4 / 3; }
  .project-story-copy { padding: 0 16px 34px; }
  .project-story-copy p { margin-bottom: 8px; }
  .project-story-copy h3 { font-size: 18px; }
  .project-story-link { margin-top: 12px; font-size: 13px; }
  .project-foot { margin-top: 20px; }
  .project-foot .pill { width: 100%; justify-content: space-between; }
  .history-heading { margin-bottom: 18px; }
  .history-heading h2 { font-size: 34px; }
  .history-heading p { font-size: 15px; }
  .history-list { padding: 2px 16px; border-radius: 9px; }
  .history-row { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "photo year" "photo text" "kind kind"; column-gap: 16px; row-gap: 4px; align-items: start; padding: 16px 0; }
  .history-photo { grid-area: photo; }
  .history-year { grid-area: year; font-size: 15px; color: #8f8f8d; }
  .history-text { grid-area: text; }
  .history-text h3 { font-size: 17px; }
  .history-text p { font-size: 13px; }
  .history-kind { display: none; }
}
