:root {
  --ink: #080b09;
  --panel: #111512;
  --paper: #f2f3ef;
  --muted: #9ba49e;
  --accent: #b9c6d5;
  --line: rgba(255,255,255,.14);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--ink); }
body { margin: 0; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); display: grid; place-items: center; color: var(--paper); font-family: Inter, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 20% 10%, rgba(137,158,183,.13), transparent 34%), radial-gradient(circle at 85% 82%, rgba(108,133,160,.1), transparent 32%), linear-gradient(135deg, #070a08, #0c110e 58%, #080b09); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .024; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
html[data-language="en"] [data-lang="pl"], html[data-language="pl"] [data-lang="en"] { display: none !important; }

.card { position: relative; z-index: 1; width: min(1320px, 100%); height: min(820px, 100%); min-height: 600px; margin: auto; padding: clamp(22px, 3.2vw, 46px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr); grid-template-rows: auto 1fr auto; column-gap: clamp(28px, 5vw, 76px); overflow: hidden; border: 1px solid var(--line); border-radius: clamp(24px, 3vw, 38px); background: linear-gradient(135deg, rgba(18,23,19,.97), rgba(8,11,9,.98)); box-shadow: 0 40px 130px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.04); isolation: isolate; }
.card::before { content: ""; position: absolute; z-index: -2; inset: 0 0 0 56%; background: url("../img/workspace.jpg") center / cover; opacity: .48; -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.2) 6%, #000 18%); mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.2) 6%, #000 18%); }
.card::after { content: ""; position: absolute; z-index: -1; top: -38%; left: 28%; width: 70%; aspect-ratio: 1; border: 1px solid rgba(185,198,213,.07); border-radius: 50%; box-shadow: 0 0 0 70px rgba(185,198,213,.018), 0 0 0 140px rgba(185,198,213,.012); }

.card-header { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; font-size: .86rem; letter-spacing: -.02em; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.language-switch { position: relative; width: 82px; height: 40px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); }
.language-switch::before { content: ""; position: absolute; top: 4px; left: 4px; width: 34px; height: 30px; border-radius: 999px; background: var(--paper); transition: transform .35s cubic-bezier(.16,1.3,.3,1); }
html[data-language="pl"] .language-switch::before { transform: translateX(38px); }
.language-switch button { position: relative; z-index: 1; padding: 0; border: 0; background: transparent; color: #8e9891; font-size: .62rem; font-weight: 800; cursor: pointer; }
.language-switch button[aria-pressed="true"] { color: var(--ink); }

.identity { align-self: center; width: 100%; max-width: 550px; padding: clamp(22px, 5vh, 58px) 0; }
.eyebrow { margin: 0 0 clamp(18px, 3vh, 32px); display: flex; align-items: center; gap: 10px; color: #dce2e7; font-size: .68rem; font-weight: 760; letter-spacing: .14em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px rgba(185,198,213,.09); }
h1 { margin: 0; font-size: clamp(3.7rem, 6.5vw, 6.6rem); line-height: .82; letter-spacing: -.075em; font-weight: 650; }
.positioning { max-width: 480px; margin: clamp(24px, 4vh, 38px) 0 0; font-size: clamp(1.5rem, 2.25vw, 2.35rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 550; }
.summary { max-width: 460px; margin: clamp(14px, 2.4vh, 24px) 0 0; color: #aeb6b0; font-size: clamp(.86rem, 1.15vw, 1.05rem); line-height: 1.6; }
.primary-actions { margin-top: clamp(22px, 4vh, 38px); display: flex; flex-wrap: wrap; gap: 9px; }
.action { min-height: 52px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid var(--line); border-radius: 14px; color: #d6ddd8; font-size: .76rem; font-weight: 750; transition: transform .35s cubic-bezier(.16,1.4,.3,1), background .2s, color .2s, border-color .2s; }
.action:hover, .action:focus-visible { transform: translateY(-4px); border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.07); color: #fff; }
.action-primary { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.action-primary:hover, .action-primary:focus-visible { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.action-icon { width: 52px; padding: 0; border-radius: 50%; font-size: 1rem; }

.profile-panel { position: relative; align-self: center; min-height: min(540px, 64vh); padding: clamp(24px, 3.3vw, 42px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 28px; background: linear-gradient(145deg, rgba(14,18,15,.72), rgba(6,9,7,.87)); box-shadow: 0 28px 90px rgba(0,0,0,.3); backdrop-filter: blur(18px); }
.proof { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.proof > div { min-width: 0; padding: 0 18px 24px 0; }
.proof > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.proof strong { display: block; font-size: clamp(2.1rem, 3.5vw, 3.4rem); line-height: 1; letter-spacing: -.055em; }
.proof span { display: block; margin-top: 8px; color: #9ea7a1; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stack-summary { padding: 17px 0; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.stack-summary > div { min-width: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.stack-summary strong { color: var(--accent); font-size: .49rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.stack-summary > div > span { min-width: 0; color: #ccd4ce; font-size: .55rem; font-weight: 690; line-height: 1.35; letter-spacing: .035em; }
.conversation { max-width: 460px; padding-top: 24px; }
.conversation-label { color: var(--accent); font-size: .56rem; font-weight: 800; letter-spacing: .15em; }
.conversation p { margin: 12px 0 0; color: #c8ceca; font-size: clamp(.82rem, 1.15vw, 1rem); line-height: 1.55; }
.secondary-links { position: relative; z-index: 2; margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 15px; }
.secondary-links a { color: #aab3ad; font-size: .64rem; font-weight: 700; transition: color .2s; }
.secondary-links a:hover, .secondary-links a:focus-visible { color: #fff; }
.mascot { position: absolute; right: -34px; bottom: -26px; width: min(200px, 38%); opacity: .085; transform: rotate(-4deg); pointer-events: none; }

.card-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; color: #707b74; font-size: .54rem; font-weight: 760; letter-spacing: .15em; }

@media (max-width: 760px) {
  body { padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
  .card { height: 100%; min-height: 0; padding: 18px; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; row-gap: 0; border-radius: 22px; }
  .card::before { inset: 46% 0 0; background: linear-gradient(180deg, rgba(9,12,10,.78), rgba(9,12,10,.96)), url("../img/workspace.jpg") 66% center / cover; opacity: .35; -webkit-mask-image: none; mask-image: none; }
  .card::after { width: 120%; left: 5%; top: 15%; }
  .brand img { width: 36px; height: 36px; }
  .identity { align-self: auto; max-width: none; padding: clamp(18px, 3.8vh, 32px) 0 clamp(16px, 3vh, 26px); }
  .eyebrow { margin-bottom: 17px; font-size: .57rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.3rem); }
  .positioning { margin-top: 19px; font-size: clamp(1.35rem, 6vw, 1.75rem); }
  .summary { margin-top: 12px; font-size: .78rem; line-height: 1.48; }
  .primary-actions { margin-top: 18px; gap: 7px; }
  .action { min-height: 45px; padding: 0 13px; gap: 10px; border-radius: 12px; font-size: .66rem; }
  .action-icon { width: 45px; padding: 0; }
  .profile-panel { align-self: stretch; min-height: 0; padding: 18px; border-radius: 20px; }
  .proof > div { padding: 0 12px 15px 0; }
  .proof > div + div { padding-left: 15px; }
  .proof strong { font-size: 1.9rem; }
  .proof span { margin-top: 5px; font-size: .49rem; }
  .stack-summary { padding: 11px 0; gap: 5px; }
  .stack-summary > div { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
  .stack-summary strong { font-size: .43rem; }
  .stack-summary > div > span { font-size: .47rem; }
  .conversation { padding-top: 13px; }
  .conversation p { margin-top: 7px; font-size: .7rem; line-height: 1.42; }
  .secondary-links { padding-top: 12px; gap: 7px 13px; }
  .secondary-links a { font-size: .57rem; }
  .mascot { right: -22px; bottom: -20px; width: 145px; }
  .card-footer { padding-top: 12px; font-size: .43rem; }
}

@media (max-height: 700px) and (min-width: 761px) {
  .card { min-height: 0; padding-top: 22px; padding-bottom: 22px; }
  .identity { padding: 22px 0; }
  h1 { font-size: clamp(3.7rem, 6.8vw, 6.4rem); }
  .positioning { margin-top: 20px; }
  .summary { margin-top: 12px; }
  .primary-actions { margin-top: 20px; }
  .profile-panel { min-height: 440px; padding: 28px; }
  .proof > div { padding-bottom: 16px; }
  .skills { padding: 15px 0; }
  .conversation { padding-top: 16px; }
  .secondary-links { padding-top: 16px; }
}

@media (max-height: 700px) and (max-width: 760px) {
  .summary { display: none; }
  .identity { padding-top: 12px; padding-bottom: 13px; }
  .eyebrow { margin-bottom: 11px; }
  h1 { font-size: clamp(2.7rem, 12vw, 3.6rem); }
  .positioning { margin-top: 12px; font-size: 1.2rem; }
  .primary-actions { margin-top: 12px; }
  .action { min-height: 40px; }
  .profile-panel { padding: 14px 16px; }
  .conversation { display: none; }
  .stack-summary { border-bottom: 0; }
}

/* Let the card confidently fill true 4K / television canvases without
   changing the established proportions on ordinary desktop monitors. */
@media (min-width: 3000px) and (min-height: 1600px) {
  body {
    padding: 24px;
    font-size: clamp(18px, .62vw, 24px);
  }

  .card {
    width: calc(100vw - 48px);
    height: calc(100vh - 48px);
    max-width: none;
    max-height: none;
    min-height: 0;
    padding: clamp(60px, 3vw, 108px);
    grid-template-columns: minmax(0, 1.18fr) minmax(640px, .82fr);
    column-gap: clamp(96px, 6vw, 220px);
    border-radius: clamp(38px, 2vw, 72px);
  }

  .brand { gap: 18px; font-size: 1rem; }
  .brand img { width: 68px; height: 68px; }
  .language-switch { width: 112px; height: 54px; padding: 5px; }
  .language-switch::before { top: 5px; left: 5px; width: 47px; height: 42px; }
  html[data-language="pl"] .language-switch::before { transform: translateX(53px); }
  .language-switch button { font-size: .72rem; }

  .identity { max-width: 860px; padding: clamp(58px, 7vh, 150px) 0; }
  .eyebrow { margin-bottom: 38px; font-size: .78rem; }
  .status-dot { width: 11px; height: 11px; box-shadow: 0 0 0 10px rgba(185,198,213,.09); }
  h1 { font-size: clamp(7rem, 6.6vw, 10.5rem); }
  .positioning { max-width: 800px; margin-top: 48px; font-size: clamp(2.5rem, 2.35vw, 3.8rem); }
  .summary { max-width: 760px; margin-top: 30px; font-size: 1.12rem; }
  .primary-actions { margin-top: 46px; gap: 14px; }
  .action { min-height: 72px; padding: 0 28px; gap: 32px; border-radius: 20px; font-size: .9rem; }
  .action-icon { width: 72px; padding: 0; font-size: 1.2rem; }

  .profile-panel { min-height: min(1160px, 68vh); padding: clamp(48px, 3vw, 82px); border-radius: 44px; }
  .proof > div { padding: 0 30px 36px 0; }
  .proof > div + div { padding-left: 34px; }
  .proof strong { font-size: clamp(3.4rem, 3vw, 5.2rem); }
  .proof span { margin-top: 12px; font-size: .72rem; }
  .stack-summary { padding: 28px 0; gap: 13px; }
  .stack-summary > div { grid-template-columns: 118px minmax(0, 1fr); gap: 18px; }
  .stack-summary strong { font-size: .62rem; }
  .stack-summary > div > span { font-size: .7rem; }
  .conversation { max-width: 640px; padding-top: 36px; }
  .conversation-label { font-size: .7rem; }
  .conversation p { margin-top: 18px; font-size: 1.05rem; }
  .secondary-links { padding-top: 38px; gap: 12px 24px; }
  .secondary-links a { font-size: .78rem; }
  .mascot { right: -46px; bottom: -36px; width: min(300px, 36%); }
  .card-footer { font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
