/* Shared visual rhythm for the portfolio and its three projects. */
body { -webkit-font-smoothing:antialiased; }
body h1,body h2,body h3 { letter-spacing:0; }
.cursor-aura { display:none; }
.profile-hero { grid-template-columns:minmax(0,1fr) 180px; gap:80px; min-height:500px; padding-block:76px 64px; }
.profile-copy { grid-column:1; grid-row:1; }
.profile-photo { grid-column:2; grid-row:1; aspect-ratio:4/5; border-radius:4px; }
.profile-photo img { object-position:center 28%; }
.profile-copy h1 { margin:0 0 24px; font-size:64px; line-height:1.08; font-weight:500; }
.name-period { color:#7284d1; }
.profile-statement { max-width:690px; margin:0; font-size:26px; line-height:1.65; font-weight:400; }
.profile-lead { max-width:620px; margin-top:18px; font-size:14px; }
.section-label { font-weight:500; }
.profile-actions { gap:26px; margin-top:26px; }
.profile-actions .button { min-height:44px; padding:0; gap:16px; border:0; border-bottom:1px solid #222325; border-radius:0; background:transparent; color:#222325; font-size:12px; font-weight:500; }
.profile-actions .secondary { color:#68696d; border-color:#ddd; }
.portfolio-section { padding-block:36px 92px; }
.selected-projects { overflow:visible; }
.selected-projects .section-heading { display:grid; grid-template-columns:1fr auto; gap:4px 40px; margin-bottom:32px; padding-top:24px; border-top:1px solid #e5e5e7; }
.selected-projects .section-label { grid-column:1; margin:0 0 10px; }
.selected-projects .section-heading h2 { grid-column:1; font-size:23px; font-weight:500; }
.selected-projects .section-heading > p:last-child { grid-column:2; grid-row:1/3; align-self:end; max-width:330px; margin:0; font-size:12px; }
.project-panels { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); min-height:0; gap:26px; overflow:visible; background:none; }
.project-panel { display:flex; min-width:0; min-height:0; flex-direction:column; overflow:visible; background:none; transition:transform .3s cubic-bezier(.2,.7,.2,1); }
.project-panel + .project-panel::before { display:none; }
.project-panel:hover,.project-panel:focus-within { background:none; }
.project-panel .panel-visual { position:relative; inset:auto; order:-1; display:flex; width:100%; height:auto; aspect-ratio:4/3; align-items:center; justify-content:center; overflow:hidden; padding:18px; border:0; border-radius:6px; background:#f1f1f3; opacity:1; transform:none; box-shadow:none; transition:none; }
.project-panel:hover .panel-visual,.project-panel:focus-within .panel-visual { transform:none; }
.panel-visual > img { width:100%; height:100%; object-fit:contain; }
.panel-visual-wivlo img:first-child { width:93%; height:100%; margin-right:auto; filter:none; }
.panel-visual-wivlo img:last-child { right:5%; bottom:8%; width:23%; height:69%; filter:drop-shadow(0 5px 10px #0002); }
.project-panel .panel-visual-snapside { flex-direction:column; gap:25px; padding:38px; }
.panel-visual-snapside > img { width:78%; height:auto; }
.history-lines { width:85%; margin:0; gap:10px; }
.history-lines i { height:5px; background:#c7c7cb; opacity:1; }
.history-lines i:first-child { background:linear-gradient(90deg,#fa6927,#ffbe53); }
.project-panels .project-panel .panel-copy { display:grid; grid-template-columns:1fr auto; min-width:0; height:auto; gap:0 10px; padding:22px 0 0; }
.panel-number { grid-column:2; grid-row:1; font-size:11px; font-weight:400; }
.project-panels .project-panel .panel-type { grid-column:1; grid-row:1; margin:0; opacity:1; font-size:10px; font-weight:400; white-space:normal; }
.project-panels .project-panel .panel-title { grid-column:1/-1; flex-direction:row; align-items:center; gap:10px; min-height:28px; margin-top:14px; }
.project-panels .project-panel .panel-title img { width:26px; height:26px; flex:0 0 26px; border-radius:5px; }
.project-panels .project-panel .panel-title h3 { font-size:23px; font-weight:500; }
.panel-title a::before { content:""; position:absolute; inset:0; z-index:3; }
.project-panel:focus-within { outline:2px solid #7284d1; outline-offset:8px; border-radius:6px; }
.project-panel:focus-within a { outline:none; }
.project-panel .panel-copy > p { grid-column:1/-1; max-width:none; margin:15px 0 0; opacity:1; transform:none; color:#68696d; font-size:12px; line-height:1.9; }
.about-band { padding-block:72px; background:#fafafa; }
.about-layout { grid-template-columns:1fr 1.8fr; gap:74px; }
.about-layout h2 { font-size:24px; line-height:1.65; font-weight:500; }
.profile-facts { gap:30px 38px; }
.profile-facts article { min-height:0; padding:17px 0 0; }
.profile-facts article:nth-child(odd) { border-right:0; }
.profile-facts strong { margin-top:16px; font-size:14px; font-weight:500; }
.profile-facts p { font-size:12px; line-height:1.9; }
.contact-section { gap:80px; padding-block:88px; }
.contact-copy h2 { font-size:28px; font-weight:400; line-height:1.65; }
.contact-copy > p:last-child { font-size:12px; }
.contact-link strong { font-size:12px; font-weight:400; }
.site-footer { font-size:10px; }
.reveal,.motion-ready .reveal { opacity:1; transform:none; transition:transform .7s cubic-bezier(.2,.7,.2,1); }
.motion-ready .reveal:not(.is-visible) { transform:translateY(24px); }
body .project-hero { grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); min-height:620px; gap:48px; padding-block:70px; }
body .project-hero h1 { font-size:54px; font-weight:500; }
body .project-hero h2 { font-size:27px; line-height:1.65; font-weight:400; }
body .project-hero .case-lead { font-size:14px; }
body .project-hero .case-meta { padding-top:20px; border-top:1px solid #e5e5e7; }
body .project-hero .case-meta span { font-size:11px; }
body .project-hero .case-links { gap:20px; }
body .project-hero .case-links a { padding:0; border-radius:0; border-bottom:1px solid #222; background:none; color:#222; font-weight:500; }
body .project-hero .project-hero-visual { height:430px; min-height:0; padding:18px; background:#f4f4f5; border-radius:6px; }
.wivlo-product-page .section-heading h2,.project-snapside .section-intro h2,.project-lalatulle .section-copy h2,.project-lalatulle .feature-copy h2 { font-size:30px; line-height:1.6; font-weight:500; }
.project-snapside .section-intro { gap:48px; }
.project-snapside .problem-grid p { font-size:12px; }
.project-snapside .section-index { color:#a94012; }
.project-snapside .screen-placeholder figcaption { font-size:12px; }
.project-snapside .screen-placeholder { min-width:0; }
.project-snapside .screen-placeholder > div { width:100%; min-height:0; }
.project-snapside .core-flow { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); overflow:visible; }
.project-snapside .core-flow li { min-width:0; width:auto; }
.project-snapside .preview-activity { min-height:55px; }
.project-page-header .back-link,.project-page-header .case-nav a,.site-header .nav-links a { font-weight:500; }
@media(hover:hover) and (prefers-reduced-motion:no-preference) { .project-panel:hover { transform:translateY(-4px) scale(1.015); } }
@media(max-width:980px) {
  .profile-hero { gap:42px; grid-template-columns:minmax(0,1fr) 150px; }
  .profile-copy h1 { font-size:54px; }
  .profile-statement { font-size:23px; }
  .project-panels { gap:20px; }
  .project-panel .panel-visual-snapside { padding:24px; }
  .about-layout { gap:42px; }
}
@media(max-width:820px) {
  body .project-hero { grid-template-columns:1fr; min-height:0; gap:36px; padding-block:50px; }
  body .project-hero .project-hero-visual { height:auto; min-height:0; aspect-ratio:16/10; }
  body .project-hero .snapside-history-preview { aspect-ratio:auto; display:grid; grid-template-columns:minmax(0,1fr); padding:18px; }
  .about-layout { grid-template-columns:1fr; }
}
@media(max-width:700px) {
  .wivlo-product-page .product-thesis,.wivlo-product-page .positioning-rail,.project-snapside .tool-journey,.project-snapside .system-model { display:grid; grid-template-columns:minmax(0,1fr); overflow:visible; }
  .wivlo-product-page .product-thesis article,.wivlo-product-page .positioning-rail article,.project-snapside .tool-journey article,.project-snapside .system-model > div { min-width:0; width:100%; flex-basis:auto; }
  .wivlo-product-page .product-thesis > i,.wivlo-product-page .positioning-rail > i,.project-snapside .tool-journey > i,.project-snapside .system-model > i { justify-self:center; transform:rotate(90deg); }
  .wivlo-product-page .research-patterns { display:grid; grid-template-columns:minmax(0,1fr); overflow:visible; }
  .wivlo-product-page .research-patterns article { min-width:0; width:auto; }
  .project-snapside .core-flow { grid-template-columns:minmax(0,1fr); }
  .project-snapside .core-flow li { min-height:0; padding:24px; border-bottom:1px solid #e5e5e7; }
  .project-snapside .core-flow li b { margin-top:12px; }
  .page-shell { width:calc(100% - 40px); }
  .profile-hero { grid-template-columns:minmax(0,1fr) 86px; align-items:start; gap:24px; min-height:0; padding-block:48px; }
  .profile-copy { display:contents; }
  .profile-copy .section-label { grid-column:1; grid-row:1; align-self:center; margin:0; font-size:9px; }
  .profile-copy h1 { grid-column:1; grid-row:2; font-size:40px; margin:0; }
  .profile-photo { grid-column:2; grid-row:1/3; width:86px; }
  .profile-statement,.profile-lead,.profile-actions { grid-column:1/-1; }
  .profile-statement { font-size:22px; }
  .profile-lead { margin:0; font-size:13px; }
  .profile-actions { margin:0; }
  .selected-projects .section-heading { display:block; }
  .selected-projects .section-heading > p:last-child { margin-top:14px; max-width:none; }
  .project-panels { grid-template-columns:1fr; gap:40px; }
  .project-panels .project-panel { min-height:0; background:none; }
  .project-panel .panel-visual { aspect-ratio:16/10; }
  .project-panel .panel-copy > p { font-size:13px; }
  .portfolio-section { padding-block:16px 64px; }
  .about-band { padding-block:56px; }
  .profile-facts { grid-template-columns:1fr 1fr; gap:28px; }
  .contact-section { grid-template-columns:1fr; gap:36px; padding-block:64px; }
  .contact-copy h2 { font-size:24px; }
  body .project-hero h1 { font-size:42px; }
  body .project-hero h2 { font-size:24px; }
  .wivlo-product-page .section-heading h2,.project-snapside .section-intro h2,.project-lalatulle .section-copy h2,.project-lalatulle .feature-copy h2 { font-size:24px; }
}
@media(max-width:380px) { .profile-facts { grid-template-columns:1fr; } .profile-copy h1 { font-size:34px; } }
@media(prefers-reduced-motion:reduce) { .motion-ready .reveal:not(.is-visible) { transform:none; } .project-panel { transition:none; } }
