:root {
  --bg: #f1f3f5;
  --frost-a: rgba(255, 255, 255, 0.82);
  --frost-b: rgba(225, 231, 236, 0.76);
  --ink: #182128;
  --muted: #727d84;
  --soft: #445158;
  --line: rgba(24, 33, 40, 0.10);
  --line-strong: rgba(24, 33, 40, 0.16);
  --purple: #7659d6;
  --purple-soft: rgba(118, 89, 214, 0.10);

  --outer: clamp(22px, 4vw, 64px);
  --content-width: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  height: 100%;
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* One continuous frosted gradient layer. */
  background:
    linear-gradient(
      125deg,
      var(--frost-a) 0%,
      rgba(248, 249, 250, 0.92) 36%,
      rgba(232, 237, 241, 0.88) 68%,
      var(--frost-a) 100%
    ),
    var(--bg);
  background-attachment: fixed;
}

a {
  color: inherit;
}

.site-shell {
  width: min(var(--content-width), calc(100% - (var(--outer) * 2)));
  height: calc(100vh - (var(--outer) * 2));
  margin: var(--outer) auto;
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 0;
}

.identity-panel {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.identity-inner {
  height: 100%;
  padding: clamp(24px, 2.8vw, 44px) 10px clamp(24px, 2.8vw, 44px) clamp(74px, 8.8vw, 132px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-frame {
  width: min(60%, 292px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.30);
  border: 1px solid rgba(24, 33, 40, 0.08);
  box-shadow: 0 10px 24px rgba(24, 33, 40, 0.12);
}

.profile-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.identity-copy {
  margin-top: clamp(22px, 2.2vw, 32px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--muted);
}

.section-kicker {
  color: var(--purple);
}

.identity-copy h1 {
  margin: 0;
  max-width: 9ch;
  font-family: "Sora", sans-serif;
  font-size: clamp(34px, 3.3vw, 60px);
  line-height: 1.00;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.identity-title {
  margin: 18px 0 0;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.55;
  color: var(--muted);
}

.email-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.email-link:hover {
  opacity: 0.68;
  border-color: var(--purple);
}

.socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.socials a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease, color 180ms ease;
}

.socials a:nth-child(1) { color: #0A66C2; }
.socials a:nth-child(2) { color: #E1306C; }
.socials a:nth-child(3) { color: #1877F2; }
.socials a:nth-child(4) { color: #7659d6; }

.socials a:hover {
  transform: translateY(-2px);
  opacity: 0.60;
  color: var(--purple);
}

.socials img {
  width: 15px;
  height: 15px;
  display: block;
}

.identity-footer {
  margin: 14px 0 0;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.content-panel {
  min-width: 0;
  height: 100%;
  overflow-y: auto;

  /* Hide scrollbar while keeping scrolling enabled. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.content-panel::-webkit-scrollbar {
  display: none;
}

.content-inner {
  width: 100%;
  max-width: 940px;
  padding: clamp(44px, 5vw, 84px) clamp(28px, 4.4vw, 74px) clamp(58px, 6vw, 96px);
}

.section-block {
  padding: 0 0 clamp(72px, 8vw, 110px);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.about-section {
  padding-bottom: clamp(42px, 4vw, 64px);
}

.about-copy {
  max-width: 62ch;
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(12.5px, 1.15vw, 17px);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.company-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 4px 0 20px;
}

.company-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.company-logo {
  width: clamp(44px, 3.75vw, 60px);
  height: clamp(44px, 3.75vw, 60px);
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  clip-path: inset(0 round 12px);
}

.company-header h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(23px, 2vw, 32px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.company-header p,
.company-header > span {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.company-header > span {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.experience-item {
  display: grid;
  grid-template-columns: minmax(132px, 0.22fr) 1fr;
  gap: clamp(24px, 3vw, 48px);
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
}

.experience-year,
.entry-meta {
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.experience-main h3,
.simple-entry h2,
.cert-entry h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.role-subtitle {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.72;
  font-weight: 400;
  color: var(--soft);
}

#experience {
  padding-bottom: clamp(26px, 3vw, 44px);
}

.experience-main ul {
  margin: 22px 0 0;
  padding-left: 18px;
}

.experience-main li {
  margin: 0 0 10px;
  padding-left: 4px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--soft);
}

.additional-experience {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.additional-experience .company-header {
  padding: 28px 0 18px;
}

.compact-rule {
  height: 1px;
  background: var(--line);
}

.simple-entry,
.cert-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.company {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--muted);
}

.simple-entry .entry-meta {
  max-width: 230px;
  text-align: right;
  line-height: 1.7;
  text-transform: none;
  letter-spacing: 0;
}

.education-note {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--soft);
}

.cert-list {
  display: flex;
  flex-direction: column;
}

.cert-entry .entry-meta {
  white-space: nowrap;
  align-self: center;
}

.contact-section {
  padding-top: 8px;
  padding-bottom: 28px;
}

.contact-email {
  display: inline-block;
  margin-top: 4px;
  font-family: "Sora", sans-serif;
  font-size: clamp(28px, 3.2vw, 52px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.contact-note {
  max-width: 420px;
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 960px) {
  html,
  body {
    height: auto;
    overflow: visible;
  }

  :root {
    --outer: 18px;
  }

  .site-shell {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .identity-panel {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .identity-inner {
    height: auto;
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(140px, 30%) 1fr;
    column-gap: 24px;
    row-gap: 24px;
  }

  .profile-frame {
    width: 100%;
    grid-row: span 3;
    align-self: start;
  }

  .identity-copy {
    margin-top: 0;
  }

  .socials {
    margin-top: 0;
  }

  .identity-footer {
    margin-top: 0;
  }

  .content-panel {
    height: auto;
    overflow: visible;
  }

  .content-inner {
    padding: 48px 28px 72px;
  }
}

@media (max-width: 640px) {
  :root {
    --outer: 0px;
  }

  .site-shell {
    width: 100%;
  }

  .identity-inner {
    grid-template-columns: 112px 1fr;
    padding: 22px 20px 26px;
    column-gap: 18px;
  }

  .profile-frame {
    width: 112px;
    border-radius: 12px;
  }

  .identity-copy h1 {
    font-size: 32px;
  }

  .identity-title {
    font-size: 13px;
  }

  .email-link {
    font-size: 12px;
  }

  .socials {
    grid-column: 2;
  }

  .identity-footer {
    display: none;
  }

  .content-inner {
    padding: 42px 20px 64px;
  }

  .about-copy {
    max-width: none;
    font-size: 14px;
    line-height: 1.55;
  }

  .company-header {
    display: flex;
    align-items: flex-start;
  }

  .company-identity {
    gap: 10px;
  }

  .company-header > span {
    display: inline-block;
    margin-top: 8px;
  }

  .company-logo {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    clip-path: inset(0 round 9px);
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 26px 0 34px;
  }

  .simple-entry,
  .cert-entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .simple-entry .entry-meta {
    max-width: none;
    text-align: left;
  }

  .cert-entry .entry-meta {
    white-space: normal;
    align-self: auto;
  }

  .contact-email {
    font-size: 31px;
    overflow-wrap: anywhere;
  }
}
