/* One shared close to the page: idea, visual direction, and a direct invitation. */
footer#contact.footer-refined{padding:72px 44px 0;background:#111;color:#f5f5f2}
footer#contact .footer-main{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(240px,.75fr);align-items:end;gap:44px}
footer#contact .footer-title{margin:0;max-width:none;font-size:clamp(38px,5.6vw,76px);font-weight:500;line-height:1.08;letter-spacing:-.055em}
footer#contact .footer-title>span{display:block;color:#b9b9b4;line-height:1.15;max-width:100%}
footer#contact .footer-title>.rolling-phrase{display:block;width:100%;margin:0;line-height:1.15}
footer#contact .rolling-phrase .phrase-sizer,footer#contact .rolling-phrase .phrase-current,footer#contact .rolling-phrase .phrase-next{white-space:normal;line-height:1.15}
footer#contact .phrase-changing .phrase-current,footer#contact .phrase-changing .phrase-next{animation-duration:.8s}
footer#contact .footer-invite{padding-bottom:4px;max-width:35ch}
footer#contact .footer-invite>p{margin:0 0 24px;font-size:16px;line-height:1.65;letter-spacing:-.02em;color:#f5f5f2}
footer#contact .footer-contact-button{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-content:space-between;gap:20px;min-height:58px;padding:8px 8px 8px 22px;border:0;border-radius:999px;background-color:#121214;color:#fff;background-image:radial-gradient(circle 95px at var(--glow-x,75%) var(--glow-y,50%),#ffffff00,transparent);box-shadow:0 6px 16px #00000020;font:inherit;font-size:15px;font-weight:600;line-height:1.2;letter-spacing:-.02em;cursor:pointer;touch-action:manipulation;transition:box-shadow .25s,scale .18s}
footer#contact .footer-contact-button svg{width:23px;height:23px;flex:none}
@media(hover:hover){footer#contact .footer-contact-button:hover{transform:none;background-color:#121214;background-image:radial-gradient(circle 95px at var(--glow-x,75%) var(--glow-y,50%),#ffffff26,transparent);box-shadow:0 8px 20px #00000026}}
footer#contact .footer-contact-button:focus-visible{outline:2px solid #fff;outline-offset:5px}
footer#contact .footer-meta{margin-top:60px;padding:24px 0 112px;gap:24px;align-items:center;border-top:1px solid #ffffff1c}
footer#contact .footer-meta .language-switch,footer#contact .footer-meta .footer-top{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;font-size:12px}
footer#contact .footer-meta .footer-top{gap:6px}
@media(max-width:800px){
 footer#contact .footer-main{grid-template-columns:1fr;gap:28px}
 footer#contact .footer-title{font-size:clamp(36px,7.6vw,64px)}
 footer#contact .footer-invite{max-width:42ch}
}
@media(max-width:600px){
 body{padding-bottom:0}
 footer#contact.footer-refined{padding:48px 20px calc(140px + env(safe-area-inset-bottom,0px))}
 footer#contact .footer-title{font-size:clamp(28px,8.6vw,44px);line-height:1.1;letter-spacing:-.05em}
 footer#contact .footer-main{gap:24px}
 footer#contact .footer-invite>p{font-size:15px;margin-bottom:20px;line-height:1.65}
 footer#contact .footer-contact-button{min-height:58px;font-size:15px}
 footer#contact .footer-meta{flex-wrap:wrap;gap:4px 24px;margin-top:36px;padding:18px 0 0;font-size:12px}
 footer#contact .footer-meta .footer-year{flex:1 0 100%;margin:0;color:#f5f5f2;font-size:11px}
 footer#contact .footer-meta .language-switch{margin-right:auto}
}
@media(prefers-reduced-motion:reduce){footer#contact .footer-contact-button{transition:none}footer#contact .footer-contact-button:hover{transform:none}}

footer#contact .rolling-phrase .phrase-sizer{display:grid}
footer#contact .phrase-sizer>span{grid-area:1/1}

/* Keep only the rotating headline muted; utilities sit above the fixed blur. */
footer#contact .footer-title,footer#contact .footer-invite>p,footer#contact .footer-meta,footer#contact .footer-meta .language-switch,footer#contact .footer-meta .footer-top{color:#f5f5f2}

/* Inverted hero action for the dark footer. */
footer#contact .footer-contact-button{background-color:#f5f5f2;color:#171717;background-image:none}
footer#contact .footer-contact-button .collaborate-arrow{background:#121214;color:#f5f5f2}
@media(hover:hover){footer#contact .footer-contact-button:hover{background-color:#fff;color:#171717;background-image:radial-gradient(circle 95px at var(--glow-x,75%) var(--glow-y,50%),#0000000d,transparent)}}

/* Direct contact and legal page links. */
footer#contact .footer-email-row{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:44px}
footer#contact .footer-email-label{font-size:14px;line-height:1.5;letter-spacing:0;color:#b9b9b4}
footer#contact .footer-email{max-width:100%;font-size:clamp(16px,2.2vw,28px);line-height:1.3;letter-spacing:-.035em;color:#f5f5f2;overflow-wrap:anywhere}
footer#contact .footer-email:hover{text-decoration:underline;text-underline-offset:5px}
footer#contact .footer-meta{margin-top:36px;padding:24px 0 20px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px}
footer#contact .footer-legal-links{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center}
footer#contact .footer-legal-links a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;line-height:1.5;letter-spacing:-.02em;color:#f5f5f2}
footer#contact .footer-legal-links a:hover{text-decoration:underline;text-underline-offset:4px}
.legal-page .legal-content{min-height:55vh;padding-top:160px;padding-bottom:100px}
.legal-page h1{font-size:clamp(38px,5.5vw,72px);line-height:1.08;margin:32px 0 24px;max-width:850px}
.legal-page p{font-size:18px;line-height:1.65;color:var(--muted);margin-bottom:24px}
.legal-page .legal-email{font-size:16px;text-decoration:underline;text-underline-offset:5px;overflow-wrap:anywhere}
@media(max-width:600px){
 footer#contact .footer-email-row{margin-top:32px;gap:8px}
 footer#contact .footer-meta{margin-top:28px;padding-bottom:8px;gap:6px 20px}
 footer#contact .footer-legal-links{width:100%;gap:4px 20px;order:1}
 footer#contact .footer-meta .language-switch,footer#contact .footer-meta .footer-top{order:2}
 .legal-page .legal-content{padding-top:48px;padding-bottom:64px}
 .legal-page h1{font-size:38px}
 .legal-page p{font-size:16px}
}

/* Refine the footer type and align the utility links as one quiet row. */
footer#contact .footer-email-row{gap:6px}
footer#contact .footer-email-label{font-size:12px;font-weight:400}
footer#contact .footer-email{font-family:Arial,Helvetica,sans-serif;font-size:clamp(16px,1.6vw,20px);font-weight:400;letter-spacing:-.02em;line-height:1.5}
footer#contact .footer-legal-links{order:0;margin-right:auto;width:auto}
footer#contact .footer-legal-links a{font-family:inherit;font-size:12px;font-weight:500;line-height:1.4;letter-spacing:inherit;padding:8px 0}
footer#contact .footer-meta .language-switch{order:1;margin:0}
footer#contact .footer-meta .footer-top{order:2}
footer#contact .footer-meta .footer-year{order:3;margin:0}
@media(max-width:600px){
 footer#contact .footer-legal-links{flex:1 0 100%;gap:4px 20px}
 footer#contact .footer-meta .language-switch{margin-right:auto}
 footer#contact .footer-meta .footer-year{flex:1 0 100%;font-size:11px}
}

/* Readable long-form terms, using the portfolio's existing type. */
.legal-page .legal-updated{font-size:13px;line-height:1.5;margin-bottom:44px;color:#777}
.legal-page .legal-document{max-width:820px}
.legal-document>section+section{margin-top:36px}
.legal-page .legal-document h2{font-size:24px;line-height:1.3;letter-spacing:-.035em;margin:0 0 16px}
.legal-page .legal-document p{font-size:16px;line-height:1.8;letter-spacing:-.015em;color:#555;margin:0 0 16px}
.legal-document a{text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}
@media(max-width:600px){.legal-page .legal-updated{margin-bottom:32px}.legal-page .legal-document h2{font-size:21px}.legal-document>section+section{margin-top:28px}}

/* Compact footer with a deliberate mobile hierarchy and room for the fixed navigation. */
footer#contact.footer-refined{padding-bottom:80px}
@media(max-width:600px){
 footer#contact.footer-refined{padding:44px 22px calc(112px + env(safe-area-inset-bottom,0px))}
 footer#contact .footer-main{gap:24px}
 footer#contact .footer-title{font-size:clamp(30px,8.3vw,42px);max-width:100%}
 footer#contact .footer-invite{max-width:none;width:100%;padding:0}
 footer#contact .footer-invite>p{font-size:16px;line-height:1.6;margin-bottom:20px}
 footer#contact .footer-contact-button{width:fit-content;max-width:100%;min-height:56px;justify-self:start}
 footer#contact .footer-email-row{margin-top:30px;gap:6px}
 footer#contact .footer-email{font-size:16px;font-weight:400;line-height:1.5}
 footer#contact .footer-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:6px 16px;margin-top:28px;padding:18px 0 0}
 footer#contact .footer-legal-links{display:flex;flex-direction:column;align-items:flex-start;grid-column:1/-1;grid-row:1;width:100%;gap:0;margin:0;order:initial}
 footer#contact .footer-legal-links a{font-size:13px;min-height:44px;padding:8px 0}
 footer#contact .footer-meta .language-switch{grid-column:1;grid-row:2;justify-self:start;margin:0;order:initial;font-size:13px}
 footer#contact .footer-meta .footer-top{grid-column:2;grid-row:2;justify-self:end;order:initial;font-size:13px}
 footer#contact .footer-meta .footer-year{grid-column:1/-1;grid-row:3;justify-self:start;order:initial;margin:12px 0 0;font-size:12px;line-height:1.5;color:#b9b9b4}
}

/* Copyright sits directly below the legal links on every viewport. */
footer#contact .footer-meta{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:0 24px;align-items:center}
footer#contact .footer-meta .footer-legal-links{grid-column:1;grid-row:1;justify-self:start;margin:0;width:auto;order:initial}
footer#contact .footer-meta .footer-year{grid-column:1;grid-row:2;justify-self:start;margin:4px 0 0;order:initial;line-height:1.5;color:#b9b9b4}
footer#contact .footer-meta .language-switch{grid-column:2;grid-row:1;justify-self:end;order:initial;margin:0}
footer#contact .footer-meta .footer-top{grid-column:3;grid-row:1;justify-self:end;order:initial}
@media(max-width:600px){
 footer#contact .footer-meta{grid-template-columns:minmax(0,1fr) auto;gap:0 16px}
 footer#contact .footer-meta .footer-legal-links{grid-column:1/-1;grid-row:1}
 footer#contact .footer-meta .footer-year{grid-column:1/-1;grid-row:2;margin:6px 0 12px}
 footer#contact .footer-meta .language-switch{grid-column:1;grid-row:3;justify-self:start}
 footer#contact .footer-meta .footer-top{grid-column:2;grid-row:3}
}

/* Match the headline's top and bottom edges to the invitation and button. */
footer#contact .footer-main{align-items:stretch}
footer#contact .footer-invite{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:0}
html[lang="sk"] footer#contact .footer-title{font-size:clamp(52px,6.8vw,88px);line-height:1.08}
@media(max-width:800px){footer#contact .footer-invite{gap:0}html[lang="sk"] footer#contact .footer-title{font-size:clamp(44px,7.8vw,64px)}}
@media(max-width:600px){html[lang="sk"] footer#contact .footer-title{font-size:clamp(38px,10vw,54px)}}
