:root {
  --ink: #111a28;
  --navy: #0b2f64;
  --blue: #eaf2fb;
  --blue-strong: #dbe9f8;
  --line: #cbd5e1;
  --muted: #5b6675;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(15, 36, 66, 0.14), 0 4px 16px rgba(15, 36, 66, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--white);
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(29, 90, 159, 0.34);
  outline-offset: 3px;
}

.site-mark {
  position: fixed;
  top: clamp(24px, 5vw, 64px);
  left: clamp(24px, 5vw, 72px);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
}

.site-mark__name {
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  font-weight: 750;
  letter-spacing: 0.18em;
}

.site-mark__line {
  width: 30px;
  height: 1px;
  background: var(--line);
}

.site-mark__descriptor {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace {
  min-height: 100vh;
  min-height: 100dvh;
}

.window {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 5;
  width: min(840px, calc(100vw - 48px));
  max-height: calc(100dvh - 136px);
  overflow: hidden;
  visibility: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 12px 12px 5px 5px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px) scale(0.99);
  transform-origin: bottom right;
  transition: opacity 180ms ease, transform 220ms ease, visibility 220ms;
}

.window.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.window__bar {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 20px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.window__close {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 7px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
}

.window__close:hover {
  background: var(--blue);
}

.window__close svg,
.task-tab svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.window__body {
  max-height: calc(100dvh - 186px);
  overflow: auto;
  padding: clamp(28px, 4vw, 52px);
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
  gap: clamp(30px, 5vw, 64px);
}

.eyebrow {
  margin: 0 0 14px;
  color: #386a9f;
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

h1,
h2 {
  max-width: 24ch;
  margin: 0 0 20px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.company-copy > p:not(.eyebrow),
.person-copy > p:not(.eyebrow) {
  max-width: 60ch;
  margin: 0 0 15px;
  color: #374354;
  font-size: 1rem;
  line-height: 1.62;
}

.contact-card {
  align-self: stretch;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: var(--white);
}

.contact-card a,
.contact-card__place {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid #dfe6ee;
  color: var(--ink);
  text-decoration: none;
}

.contact-card__place {
  font-style: normal;
}

.contact-card a:hover strong {
  color: #2b66a6;
}

.contact-card span,
.contact-card strong {
  display: block;
}

.contact-card span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-card strong {
  font-size: 0.9rem;
  font-weight: 650;
}

.person-layout {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
  align-items: start;
}

.portrait {
  position: relative;
  margin: 0;
}

.portrait::after {
  position: absolute;
  inset: 12px -12px -12px 12px;
  z-index: -1;
  border: 1px solid #b8c9dc;
  content: "";
}

.portrait img {
  display: block;
  width: 100%;
  height: 124px;
  object-fit: cover;
  object-position: 50% 34%;
  filter: grayscale(100%);
}

.person-copy {
  padding-top: 5px;
}

.person-copy h2 {
  font-size: clamp(1.6rem, 2.25vw, 2.1rem);
}

.signature {
  display: block;
  width: min(240px, 62%);
  height: auto;
  margin: 10px 0 0 auto;
}

.cv-link {
  display: flex;
  width: max-content;
  margin: 60px 0 0;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.cv-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.cv-link small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.cv-link__arrow {
  width: 15px !important;
  height: 15px !important;
  opacity: 0.65;
  transition: transform 160ms ease;
}

.cv-link:hover {
  color: #2b66a6;
}

.cv-link:hover .cv-link__arrow {
  transform: translate(2px, -2px);
}

.cv-dialog {
  width: min(1220px, calc(100vw - 32px));
  height: min(92dvh, 1000px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 10px 10px 4px 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cv-dialog::backdrop {
  background: rgba(11, 27, 48, 0.35);
  backdrop-filter: blur(2px);
}

.cv-dialog__bar {
  display: flex;
  height: 46px;
  align-items: center;
  justify-content: space-between;
  padding-left: 18px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cv-dialog__actions {
  display: flex;
  height: 100%;
  align-items: center;
}

.cv-dialog__actions a {
  padding: 7px 12px;
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: none;
}

.cv-dialog__actions a:hover {
  color: var(--navy);
}

.cv-dialog__actions button {
  display: grid;
  width: 44px;
  height: 100%;
  padding: 12px;
  place-items: center;
  border: 0;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
}

.cv-dialog__actions button:hover {
  background: var(--blue);
}

.cv-dialog__actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.cv-dialog iframe {
  display: block;
  width: 100%;
  height: calc(100% - 46px);
  border: 0;
  background: #eef2f6;
}

.taskbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  min-height: 64px;
  align-items: stretch;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  background: rgba(250, 252, 255, 0.94);
  box-shadow: 0 -8px 28px rgba(15, 36, 66, 0.05);
  backdrop-filter: blur(14px);
}

.taskbar__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: clamp(24px, 5vw, 72px);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.taskbar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy);
}

.taskbar__tabs {
  display: flex;
  margin-right: 24px;
  border-right: 1px solid var(--line);
}

.task-tab {
  position: relative;
  display: flex;
  min-width: 210px;
  align-items: center;
  gap: 13px;
  padding: 8px 20px;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.task-tab::before {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.task-tab:hover {
  background: #f2f6fb;
}

.task-tab.is-active {
  background: var(--blue);
}

.task-tab.is-active::before {
  background: var(--navy);
}

.task-tab svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.task-tab span,
.task-tab strong,
.task-tab small {
  display: block;
}

.task-tab strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.task-tab small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

@media (max-width: 760px) {
  .site-mark__line,
  .site-mark__descriptor,
  .taskbar__identity {
    display: none;
  }

  .window {
    right: 12px;
    bottom: 80px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 104px);
    transform-origin: bottom center;
  }

  .window__body {
    max-height: calc(100dvh - 154px);
    padding: 28px;
  }

  .company-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    padding: 22px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .contact-card .eyebrow {
    grid-column: 1 / -1;
  }

  .person-layout {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 26px;
  }

  .portrait img {
    height: 108px;
  }

  .taskbar {
    min-height: 68px;
  }

  .taskbar__tabs {
    width: 100%;
    margin: 0;
  }

  .task-tab {
    width: 50%;
    min-width: 0;
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .site-mark {
    top: 22px;
    left: 22px;
  }

  .window {
    right: 0;
    bottom: 68px;
    left: 0;
    max-height: calc(100dvh - 78px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .window__body {
    max-height: calc(100dvh - 128px);
    padding: 24px 22px 30px;
  }

  .person-layout {
    display: block;
  }

  .portrait {
    float: left;
    width: 74px;
    margin: 0 20px 12px 0;
  }

  .portrait img {
    height: 84px;
  }

  .portrait::after {
    inset: 7px -7px -7px 7px;
  }

  .person-copy h2 {
    margin-bottom: 18px;
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .person-copy > p:not(.eyebrow) {
    grid-column: 1 / -1;
  }

  .signature {
    clear: both;
    width: 170px;
  }

  .cv-link {
    clear: both;
  }

  .cv-dialog {
    display: none;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .task-tab {
    gap: 9px;
    padding: 8px 12px;
  }

  .task-tab svg {
    width: 22px;
    height: 22px;
  }
}

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