@font-face {
   font-family: 'opensans-regular';
   src: url('fonts/opensans/OpenSans-Regular-webfont.woff') format('woff');
   font-weight: normal;
   font-style: normal;
}

@font-face {
   font-family: 'opensans-semibold';
   src: url('fonts/opensans/OpenSans-Semibold-webfont.woff') format('woff');
   font-weight: normal;
   font-style: normal;
}

@font-face {
   font-family: 'opensans-bold';
   src: url('fonts/opensans/OpenSans-Bold-webfont.woff') format('woff');
   font-weight: normal;
   font-style: normal;
}

:root {
   --bg: #fbfafc;
   --surface: #ffffff;
   --text: #222831;
   --muted: #667085;
   --line: #e5e0ea;
   --accent: #6d4aa2;
   --accent-hover: #52357f;
   --accent-soft: #f0ebfa;
   --accent-border: #d4c5ed;
   --surface-muted: #f8f6fb;
   --shadow: 0 18px 45px rgba(34, 40, 49, 0.08);
   --shadow-soft: 0 10px 28px rgba(34, 40, 49, 0.06);
   --max-width: 980px;
}

*,
*:before,
*:after {
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
}

body {
   margin: 0;
   min-height: 100vh;
   background: linear-gradient(180deg, var(--bg) 0%, #f7f4fb 100%);
   color: var(--text);
   font-family: 'opensans-regular', Arial, sans-serif;
   font-size: 16px;
   line-height: 1.75;
}

img {
   max-width: 100%;
}

a,
a:visited {
   color: var(--accent);
   text-decoration: none;
   transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a:hover,
a:focus {
   color: var(--accent-hover);
   text-decoration: underline;
}

.site-header {
   position: sticky;
   top: 0;
   z-index: 10;
   border-bottom: 1px solid var(--line);
   background: rgba(251, 250, 252, 0.94);
   backdrop-filter: blur(14px);
   box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.site-nav {
   max-width: var(--max-width);
   margin: 0 auto;
   padding: 28px 24px 22px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 24px;
}

.brand {
   color: var(--text) !important;
   font-family: 'opensans-bold', Arial, sans-serif;
   font-size: 20px;
   letter-spacing: 0;
}

.nav-links {
   display: flex;
   align-items: center;
   gap: 6px;
   padding: 4px;
   border: 1px solid var(--line);
   border-radius: 10px;
   background: rgba(255, 255, 255, 0.72);
}

.nav-links a {
   color: var(--muted);
   padding: 8px 12px;
   border-radius: 6px;
   font-family: 'opensans-semibold', Arial, sans-serif;
   font-size: 14px;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
   color: var(--accent);
   background: var(--accent-soft);
   text-decoration: none;
}

.nav-toggle {
   position: absolute;
   width: 1px;
   height: 1px;
   overflow: hidden;
   clip: rect(0 0 0 0);
   clip-path: inset(50%);
   white-space: nowrap;
}

.nav-toggle-button {
   display: none;
   width: 42px;
   height: 42px;
   align-items: center;
   justify-content: center;
   flex-direction: column;
   gap: 5px;
   border: 1px solid var(--line);
   border-radius: 8px;
   background: rgba(255, 255, 255, 0.78);
   cursor: pointer;
   transition: border-color 160ms ease, background-color 160ms ease;
}

.nav-toggle-button span {
   display: block;
   width: 18px;
   height: 2px;
   border-radius: 999px;
   background: var(--accent-hover);
   transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle-button:hover {
   border-color: var(--accent-border);
   background: var(--accent-soft);
}

.nav-toggle:focus-visible + .nav-toggle-button {
   outline: 2px solid var(--accent-border);
   outline-offset: 3px;
}

a:focus-visible {
   outline: 2px solid var(--accent-border);
   outline-offset: 3px;
}

.page-shell {
   max-width: var(--max-width);
   margin: 0 auto;
   padding: 72px 24px 84px;
}

.page-shell.narrow {
   max-width: 860px;
}

.intro-grid {
   display: grid;
   grid-template-columns: minmax(0, 1fr) 220px;
   gap: 56px;
   align-items: center;
}

.eyebrow {
   margin: 0 0 10px;
   color: var(--accent);
   font-family: 'opensans-bold', Arial, sans-serif;
   font-size: 13px;
   letter-spacing: 0.08em;
   text-transform: uppercase;
}

h1,
h2,
h3 {
   color: var(--text);
   letter-spacing: 0;
}

h1 {
   margin: 0 0 18px;
   font-size: 44px;
   line-height: 1.18;
}

h2 {
   margin: 0 0 20px;
   font-size: 24px;
   line-height: 1.35;
}

h3 {
   margin: 0 0 6px;
   font-size: 18px;
   line-height: 1.45;
}

p {
   margin: 0 0 20px;
}

.name-note,
.muted {
   color: var(--muted);
}

.profile-block {
   margin: 0;
}

.profile-block img {
   width: 220px;
   aspect-ratio: 1;
   object-fit: cover;
   border-radius: 8px;
   border: 1px solid var(--line);
   box-shadow: var(--shadow);
}

.link-row {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   margin-top: 28px;
}

.link-row a,
.text-link {
   display: inline-flex;
   align-items: center;
   min-height: 38px;
   padding: 7px 12px;
   border: 1px solid var(--line);
   border-radius: 6px;
   background: var(--surface);
   color: var(--accent);
   font-family: 'opensans-semibold', Arial, sans-serif;
   font-size: 14px;
   box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.link-row a:hover,
.link-row a:focus,
.text-link:hover,
.text-link:focus {
   border-color: var(--accent-border);
   background: var(--accent-soft);
   text-decoration: none;
   transform: translateY(-1px);
}

.content-section {
   margin-top: 62px;
   padding-top: 34px;
   border-top: 1px solid var(--line);
}

.content-section > h2 {
   display: flex;
   align-items: center;
   gap: 14px;
}

.content-section > h2:after {
   content: '';
   height: 1px;
   flex: 1;
   background: var(--line);
}

.page-title {
   margin-bottom: 48px;
}

.intro-title {
   margin-bottom: 16px;
}

.accent-title h1 {
   position: relative;
   display: inline-block;
   color: var(--accent);
}

.accent-title h1:after {
   content: '';
   position: absolute;
   left: 2px;
   right: 2px;
   bottom: -8px;
   height: 3px;
   border-radius: 999px;
   background: linear-gradient(90deg, var(--accent) 0%, var(--accent-border) 100%);
}

.timeline-section {
   display: grid;
   gap: 16px;
}

.timeline-section h2 {
   margin-bottom: 0;
}

.timeline-item {
   display: grid;
   grid-template-columns: 230px minmax(0, 1fr);
   gap: 28px;
   padding: 22px;
   border: 1px solid var(--line);
   border-radius: 8px;
   background: rgba(255, 255, 255, 0.76);
   box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset;
   transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.timeline-section h2 + .timeline-item {
   border-top: 1px solid var(--line);
}

.timeline-item:hover {
   border-color: var(--accent-border);
   box-shadow: var(--shadow-soft);
   transform: translateY(-1px);
}

.timeline-meta {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   justify-content: flex-start;
   gap: 10px;
   color: var(--muted);
   font-size: 14px;
   line-height: 1.55;
}

.timeline-org {
   display: flex;
   align-items: center;
   gap: 10px;
   min-height: 38px;
}

.timeline-logo {
   width: 34px;
   height: 34px;
   padding: 5px;
   border: 1px solid var(--line);
   border-radius: 7px;
   background: var(--surface);
   object-fit: contain;
   box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.timeline-meta span {
   display: block;
}

.timeline-name {
   color: var(--text);
   font-family: 'opensans-semibold', Arial, sans-serif;
   font-size: 16px;
   line-height: 1.35;
}

.timeline-date {
   display: inline-flex !important;
   align-items: center;
   width: fit-content;
   min-height: 27px;
   padding: 3px 9px;
   border: 1px solid var(--accent-border);
   border-radius: 999px;
   background: var(--accent-soft);
   color: var(--accent-hover);
   font-family: 'opensans-semibold', Arial, sans-serif;
   font-size: 12px;
   line-height: 1.5;
}

.timeline-detail {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   justify-content: flex-start;
   gap: 10px;
   padding-top: 3px;
}

.timeline-role-row {
   display: flex;
   align-items: flex-start;
   justify-content: flex-start;
   width: 100%;
   gap: 10px;
   flex-wrap: wrap;
}

.timeline-role {
   margin-bottom: 0;
   color: var(--text);
   font-family: 'opensans-bold', Arial, sans-serif;
}

.timeline-team {
   display: inline-flex;
   align-items: center;
   width: fit-content;
   margin: 0;
   min-height: 27px;
   padding: 3px 9px;
   border: 1px solid var(--line);
   border-radius: 999px;
   background: var(--surface-muted);
   color: var(--muted);
   font-family: 'opensans-semibold', Arial, sans-serif;
   font-size: 13px;
   line-height: 1.5;
}

.skill-grid {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 18px;
}

.skill-group {
   padding: 18px;
   border: 1px solid var(--line);
   border-radius: 8px;
   background: rgba(255, 255, 255, 0.76);
   box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.skill-group h3 {
   margin-bottom: 12px;
   color: var(--accent-hover);
   font-size: 16px;
}

.tag-list {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
}

.tag-list span {
   display: inline-flex;
   align-items: center;
   min-height: 34px;
   padding: 5px 11px;
   border: 1px solid var(--line);
   border-radius: 6px;
   background: var(--surface-muted);
   color: #3c4754;
   font-size: 14px;
}

.project-list {
   display: grid;
   gap: 24px;
}

.project-card {
   display: grid;
   grid-template-columns: 220px minmax(0, 1fr);
   gap: 28px;
   align-items: center;
   padding: 22px;
   border: 1px solid var(--line);
   border-radius: 8px;
   background: rgba(255, 255, 255, 0.78);
   box-shadow: var(--shadow-soft);
   transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.project-card:hover {
   border-color: var(--accent-border);
   box-shadow: var(--shadow);
   transform: translateY(-2px);
}

.project-image {
   display: block;
   overflow: hidden;
   border-radius: 6px;
   border: 1px solid var(--line);
   background: #f5f2f8;
}

.project-image img {
   display: block;
   width: 100%;
   aspect-ratio: 16 / 9;
   object-fit: cover;
   transition: transform 220ms ease;
}

.project-card:hover .project-image img {
   transform: scale(1.025);
}

.project-copy h2 {
   margin-bottom: 14px;
   font-size: 22px;
}

.project-copy h2 a {
   color: var(--text);
}

.site-footer {
   max-width: var(--max-width);
   margin: 0 auto;
   padding: 28px 24px 42px;
   border-top: 1px solid var(--line);
   color: var(--muted);
   display: flex;
   justify-content: space-between;
   gap: 18px;
   font-size: 14px;
}

@media only screen and (max-width: 760px) {
   .site-footer {
      flex-direction: column;
      align-items: flex-start;
   }

   .site-nav {
      flex-wrap: wrap;
      padding-top: 22px;
      gap: 14px;
   }

   .brand {
      max-width: calc(100% - 58px);
   }

   .nav-toggle-button {
      display: flex;
      margin-left: auto;
   }

   .nav-links {
      display: none;
      width: 100%;
      flex-direction: column;
      align-items: stretch;
      gap: 4px;
      padding: 8px;
      box-shadow: var(--shadow-soft);
   }

   .nav-links a {
      padding: 10px 12px;
   }

   .nav-toggle:checked ~ .nav-links {
      display: flex;
   }

   .nav-toggle:checked + .nav-toggle-button span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
   }

   .nav-toggle:checked + .nav-toggle-button span:nth-child(2) {
      opacity: 0;
   }

   .nav-toggle:checked + .nav-toggle-button span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
   }

   .page-shell {
      padding-top: 46px;
      padding-bottom: 58px;
   }

   .intro-grid,
   .timeline-item,
   .project-card,
   .skill-grid {
      grid-template-columns: 1fr;
   }

   .intro-grid {
      gap: 30px;
   }

   .profile-block {
      order: -1;
   }

   .profile-block img {
      width: 150px;
   }

   h1 {
      font-size: 34px;
   }

   .timeline-item,
   .project-card {
      gap: 16px;
   }

   .timeline-detail {
      padding-top: 0;
   }

   .timeline-role-row {
      gap: 8px;
   }

   .project-card {
      padding: 16px;
   }
}
