/* PREIS STUDIO — production identity and visual polish layer
   Loaded after styles.css so approved imagery and focused visual refinements
   can override the stable base layout without rewriting unrelated rules. */

.portrait-shell {
  margin: 0;
  background: #E7E9E4;
}

.portrait-shell::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(31, 77, 59, .10), transparent 42%);
  box-shadow: none;
  pointer-events: none;
}

.portrait-shell::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: auto;
  height: 28%;
  aspect-ratio: auto;
  border-radius: 0;
  background: linear-gradient(0deg, rgba(15, 23, 19, .30), transparent);
  box-shadow: none;
  pointer-events: none;
}

.portrait-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 20%;
}

.portrait-gridlines {
  z-index: 2;
  opacity: 1;
  background-image:
    linear-gradient(rgba(31, 77, 59, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 77, 59, .06) 1px, transparent 1px);
  pointer-events: none;
}

.portrait-caption {
  z-index: 3;
}

.human-ai-portraits {
  align-items: stretch;
}

.identity-panel {
  min-height: 340px;
  padding: 0;
  background: #17251E;
}

.identity-panel::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 14, 11, .80) 0%, rgba(8, 14, 11, .24) 44%, transparent 68%);
  pointer-events: none;
}

.identity-panel::after {
  content: none;
}

.identity-photo {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.identity-vp .identity-photo {
  object-position: 50% 20%;
}

.identity-ai .identity-photo {
  left: 0;
  right: auto;
  width: 128%;
  object-position: 50% 24%;
}

.identity-panel .identity-panel-copy {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: grid;
  gap: 3px;
}

.identity-panel .identity-panel-copy strong {
  color: white;
}

.identity-panel .identity-panel-copy small {
  color: rgba(255, 255, 255, .72);
}

/* P3 — compact first impression
   The hero remains the same component and keeps the approved positioning copy.
   Only its visual weight, rhythm and portrait dominance are reduced. */

.hero,
.hero-grid {
  min-height: clamp(590px, 66vh, 640px);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
}

.hero-copy {
  padding: clamp(44px, 5vh, 58px) clamp(38px, 4vw, 60px) clamp(34px, 4vh, 46px) 0;
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(50px, 4.15vw, 70px);
  line-height: .97;
}

.hero-lead {
  max-width: 610px;
  margin-top: 22px;
  font-size: clamp(16px, 1vw, 18px);
  line-height: 1.48;
}

.hero-actions {
  margin-top: 25px;
}

.hero-socials {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 12px;
}

/* The portrait already sits next to the PREIS STUDIO / VLADIMÍR PREIS identity.
   Removing the repeated photo caption keeps the hero cleaner. */
.hero .portrait-caption {
  display: none;
}

/* P3 — real working context in About.
   The existing visual slot stays in place; only the former abstract CSS mockup
   is replaced by the approved work-context photograph. */

.section-about .about-grid {
  grid-template-columns: 1.04fr 1.01fr 1.20fr;
  gap: clamp(28px, 3.5vw, 54px);
}

.section-about .section-visual {
  min-height: 0;
}

.section-about .desk-card {
  min-height: 0;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(0deg, rgba(15, 23, 19, .08), rgba(15, 23, 19, .02)),
    url('/assets/images/vladimir-preis-work-context.webp') center / cover no-repeat;
  box-shadow: var(--shadow-soft);
}

.section-about .desk-card::before,
.section-about .desk-card::after,
.section-about .desk-line,
.section-about .desk-note {
  display: none;
}

.section-about .about-copy > p:not(.section-kicker) + p {
  margin-top: 20px;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  }

  .section-about .about-grid {
    grid-template-columns: .98fr 1.02fr;
  }
}

@media (max-width: 900px) {
  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 54px 0 44px;
  }

  .hero h1 {
    max-width: 720px;
    font-size: clamp(46px, 8vw, 62px);
  }

  .hero .portrait-shell {
    min-height: 500px;
  }

  .portrait-image {
    object-position: 50% 18%;
  }

  .identity-panel {
    min-height: 360px;
  }
}

@media (max-width: 650px) {
  .hero-copy {
    padding: 42px 0 38px;
  }

  .hero h1 {
    font-size: clamp(40px, 11.2vw, 52px);
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-socials {
    margin-top: 20px;
  }

  .hero .portrait-shell {
    min-height: 410px;
  }

  .portrait-image {
    object-position: 50% 17%;
  }

  .section-about .about-grid {
    grid-template-columns: 1fr;
  }

  .section-about .desk-card {
    aspect-ratio: 4 / 3;
  }

  .identity-panel {
    min-height: 320px;
  }

  .identity-panel .identity-panel-copy {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

/* P4 — Selected Work + Human × AI
   Keep the approved content and illustrations, but improve hierarchy and
   make tablet/mobile behavior monotonic instead of switching layouts twice. */

.work-grid {
  gap: 14px;
  padding-top: 22px;
}

.case-card {
  min-height: 440px;
  grid-template-columns: minmax(0, 1.18fr) minmax(220px, .82fr);
  transition: border-color .2s ease, background-color .2s ease;
}

.case-card:hover {
  border-color: rgba(243, 244, 239, .30);
  background: #132019;
}

.case-copy {
  padding: 28px 26px 26px;
}

.case-copy h3 {
  margin-top: 16px;
  font-size: clamp(24px, 1.7vw, 28px);
}

.case-copy p {
  max-width: 36ch;
  margin: 18px 0 0;
  line-height: 1.55;
}

.work-statement {
  min-height: 116px;
}

.combined-grid {
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(48px, 6vw, 92px);
}

.human-ai h2 {
  max-width: 620px;
}

.human-ai-portraits {
  gap: 12px;
  margin-top: 30px;
}

.human-ai .identity-panel {
  min-height: 320px;
}

.identity-x {
  width: 38px;
  height: 38px;
  font-size: 20px;
}

.human-ai-copy {
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
  gap: 22px 32px;
  margin-top: 24px;
}

.human-ai-copy > p {
  line-height: 1.6;
}

.human-ai-copy li {
  margin-bottom: 8px;
}

.human-ai-copy blockquote {
  grid-column: 1 / -1;
  max-width: 360px;
  margin-top: 2px;
  padding: 2px 0 2px 18px;
  border: 0;
  border-left: 2px solid var(--green);
  font-size: 18px;
  line-height: 1.2;
}

@media (max-width: 1180px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    min-height: 380px;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  }

  .case-visual {
    min-height: 380px;
    border-right: 1px solid rgba(243, 244, 239, .14);
    border-bottom: 0;
  }

  .combined-grid {
    grid-template-columns: .9fr 1.1fr;
    gap: 44px;
  }

  .human-ai .identity-panel {
    min-height: 300px;
  }
}

@media (max-width: 900px) {
  .case-card {
    min-height: 360px;
    grid-template-columns: minmax(0, 1fr) minmax(250px, .9fr);
  }

  .case-visual {
    min-height: 360px;
  }

  .combined-grid {
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .human-ai .identity-panel {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  .case-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .case-visual {
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid rgba(243, 244, 239, .14);
  }

  .case-copy {
    min-height: 0;
    padding: 26px 24px 30px;
  }
}

@media (max-width: 650px) {
  .work-grid {
    gap: 12px;
    padding-top: 18px;
  }

  .case-visual {
    min-height: 285px;
  }

  .case-copy {
    min-height: 0;
    padding: 24px 22px 28px;
  }

  .case-copy h3 {
    font-size: 25px;
  }

  .work-statement {
    min-height: 126px;
  }

  .human-ai-portraits {
    gap: 10px;
  }

  .human-ai .identity-panel {
    min-height: 300px;
  }

  .human-ai-copy {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .human-ai-copy blockquote {
    grid-column: 1;
    max-width: none;
    margin-top: 2px;
  }
}

/* P5 — final sections + mobile finish
   No content changes: only hierarchy, spacing, interaction and breakpoint polish. */

.now-section {
  padding: clamp(66px, 6vw, 88px) 0;
}

.now-grid {
  grid-template-columns: minmax(240px, .58fr) minmax(0, 1.42fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.now-heading h2 {
  max-width: 420px;
  line-height: .98;
}

.now-cards {
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.now-cards article {
  min-height: 148px;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 28px 24px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  transition: background-color .2s ease;
}

.now-cards article:last-child {
  border-right: 1px solid var(--line);
}

.now-cards article:hover {
  background: rgba(239, 238, 232, .62);
}

.now-cards article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border: 1px solid rgba(31, 77, 59, .26);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 14px;
}

.now-cards h3 {
  font-size: 18px;
}

.now-cards p {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.55;
}

.professional-context {
  padding: 30px 0;
  background: rgba(239, 238, 232, .28);
}

.professional-inner {
  grid-template-columns: minmax(190px, .62fr) minmax(0, 1.7fr) auto;
  gap: clamp(24px, 3vw, 48px);
}

.professional-title span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
}

.professional-title strong {
  font-size: 14px;
}

.professional-inner p {
  max-width: 860px;
  line-height: 1.55;
}

.professional-link {
  justify-self: end;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.professional-link:hover,
.professional-link:focus-visible {
  border-bottom-color: currentColor;
}

.contact-section {
  padding: clamp(78px, 7vw, 108px) 0;
}

.contact-grid {
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: clamp(44px, 6vw, 94px);
  align-items: end;
}

.contact-intro h2 {
  max-width: 520px;
}

.contact-intro p:last-child {
  max-width: 440px;
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.6;
}

.contact-links {
  border: 1px solid rgba(243, 244, 239, .20);
  border-right: 0;
}

.contact-links > a {
  min-height: 142px;
  padding: 24px 22px;
  transition: background-color .2s ease, box-shadow .2s ease;
}

.contact-links > a:hover,
.contact-links > a:focus-visible {
  background: rgba(255, 255, 255, .06);
}

.contact-links > a:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(243, 244, 239, .72);
}

.contact-icon {
  width: 34px;
  height: 34px;
}

.contact-links strong {
  font-size: 13px;
  line-height: 1.35;
}

.contact-links b {
  transition: transform .2s ease;
}

.contact-links > a:hover b,
.contact-links > a:focus-visible b {
  transform: translateX(4px);
}

.site-footer .footer-inner {
  min-height: 76px;
}

@media (max-width: 1180px) {
  .now-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }

  .now-heading h2 {
    max-width: 520px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
  }

  .contact-intro p:last-child {
    max-width: 640px;
  }

  .contact-links > a {
    min-height: 120px;
  }
}

@media (max-width: 900px) {
  .now-cards article {
    min-height: 136px;
    padding: 24px 20px;
  }

  .professional-inner {
    grid-template-columns: minmax(170px, .55fr) minmax(0, 1.45fr);
    gap: 16px 28px;
    align-items: start;
  }

  .professional-title {
    grid-row: 1 / 3;
  }

  .professional-inner p,
  .professional-link {
    grid-column: 2;
  }

  .professional-link {
    justify-self: start;
    text-align: left;
  }

  .contact-links {
    grid-template-columns: 1fr;
    border-right: 1px solid rgba(243, 244, 239, .20);
  }

  .contact-links > a {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid rgba(243, 244, 239, .20);
  }

  .contact-links > a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .now-cards {
    grid-template-columns: 1fr;
  }

  .now-cards article {
    min-height: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .now-cards article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 650px) {
  .now-section {
    padding: 58px 0;
  }

  .now-grid {
    gap: 24px;
  }

  .now-cards article {
    grid-template-columns: 38px 1fr;
    padding: 22px 18px;
  }

  .now-cards article > span {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .professional-context {
    padding: 30px 0;
  }

  .professional-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .professional-title {
    grid-row: auto;
  }

  .professional-inner p,
  .professional-link {
    grid-column: 1;
  }

  .contact-section {
    padding: 70px 0;
  }

  .contact-grid {
    gap: 30px;
  }

  .contact-intro p:last-child {
    margin-top: 20px;
    font-size: 14px;
  }

  .contact-links > a {
    min-height: 82px;
    grid-template-columns: 36px 1fr auto;
    padding: 20px 18px;
  }

  .site-footer .footer-inner {
    min-height: 0;
    padding: 24px 0 28px;
    gap: 10px;
  }
}
