:root {
      --bg: #ffffff;
      --text: #242424;
      --muted: #6b6b6b;
      --muted-light: #999999;
      --border: #e6e6e6;

      --green: #1a8917;
      --green-dark: #126b10;
      --green-soft: #edf8ec;

      --serif: "Source Serif 4", Georgia, serif;
      --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;

      --max: 1080px;
      --reading: 720px;

      --shadow:
        0 -8px 40px rgba(0, 0, 0, 0.13);

      --radius: 4px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 80px;
    }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family: var(--sans);
      line-height: 1.6;
      overflow-x: hidden;
    }

    body.sheet-open {
      overflow: hidden;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button,
    input {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    img {
      display: block;
      max-width: 100%;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 100;

      height: 72px;

      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(12px);

      border-bottom: 1px solid var(--border);
    }

    .topbar-inner {
      width: min(var(--max), calc(100% - 40px));
      height: 100%;
      margin: auto;

      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;

      font-weight: 800;
      font-size: 1.05rem;
      letter-spacing: -0.04em;
    }

    .brand-mark {
      width: 34px;
      height: 34px;

      display: grid;
      place-items: center;

      border-radius: 50%;

      background: #242424;
      color: #fff;

      font-size: 0.78rem;
      font-weight: 800;
    }

    .brand-name {
      white-space: nowrap;
    }

    .topnav {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .topnav a {
      padding: 8px 12px;

      color: var(--muted);
      font-size: 0.82rem;
      font-weight: 500;

      border-radius: 999px;

      transition:
        color 0.2s ease,
        background 0.2s ease;
    }

    .topnav a:hover,
    .topnav a.active {
      color: var(--text);
      background: #f3f3f3;
    }

    .top-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .round-link {
      width: 38px;
      height: 38px;

      display: grid;
      place-items: center;

      border: 1px solid var(--border);
      border-radius: 50%;

      color: var(--muted);

      transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
    }

    .round-link:hover {
      color: var(--text);
      background: #f7f7f7;
      border-color: #ccc;
    }

    /* =========================================================
       MAIN
    ========================================================= */

    main {
      min-height: 100vh;
    }

    .page {
      width: min(var(--max), calc(100% - 40px));
      margin: auto;
    }

    /* =========================================================
       HERO / AUTHOR
    ========================================================= */

    .author {
      padding: 72px 0 62px;

      border-bottom: 1px solid var(--border);
    }

    .author-inner {
      width: min(760px, 100%);
      margin: auto;

      display: grid;
      grid-template-columns: 82px minmax(0, 1fr);
      gap: 24px;

      align-items: start;
    }

    .author-avatar {
      width: 82px;
      height: 82px;

      border-radius: 50%;
      overflow: hidden;

      background: #f1f1f1;

      border: 1px solid #ddd;
    }

    .author-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
    }

    .author-label {
      margin-bottom: 8px;

      color: var(--green);

      font-size: 0.76rem;
      font-weight: 700;

      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .author h1 {
      margin: 0 0 8px;

      font-family: var(--serif);

      font-size: clamp(2.3rem, 6vw, 4.2rem);
      line-height: 0.98;

      letter-spacing: -0.045em;
      font-weight: 600;
    }

    .author-description {
      margin: 0;

      max-width: 650px;

      color: var(--muted);

      font-family: var(--serif);
      font-size: 1.2rem;
      line-height: 1.5;
    }

    .author-meta {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;

      margin-top: 18px;

      color: var(--muted);
      font-size: 0.8rem;
    }

    .author-meta span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .author-meta .dot {
      color: #aaa;
    }

    .author-links {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;

      margin-top: 22px;
    }

    .author-btn {
      min-height: 38px;

      padding: 8px 15px;

      border: 1px solid #242424;
      border-radius: 999px;

      background: #242424;
      color: white;

      font-size: 0.78rem;
      font-weight: 600;

      display: inline-flex;
      align-items: center;
      gap: 8px;

      transition:
        transform 0.2s ease,
        background 0.2s ease;
    }

    .author-btn:hover {
      background: #000;
      transform: translateY(-1px);
    }

    .author-btn.secondary {
      background: white;
      color: #242424;
      border-color: #ccc;
    }

    .author-btn.secondary:hover {
      background: #f7f7f7;
    }


    .feed {
      width: min(760px, 100%);
      margin: auto;

      padding: 38px 0 80px;
    }

    .feed-heading {
      display: flex;
      align-items: end;
      justify-content: space-between;

      gap: 20px;

      margin-bottom: 20px;
    }

    .feed-heading h2 {
      margin: 0;

      font-family: var(--serif);
      font-size: 1.65rem;
      line-height: 1.1;

      letter-spacing: -0.025em;
    }

    .feed-heading p {
      margin: 4px 0 0;

      color: var(--muted);

      font-size: 0.8rem;
    }

    .feed-filter {
      color: var(--muted);
      font-size: 0.75rem;
    }

    /* =========================================================
       POST
    ========================================================= */

    .post {
      padding: 30px 0;

      border-top: 1px solid var(--border);

      transition:
        background 0.2s ease;
    }

    .post:first-of-type {
      border-top: 0;
      padding-top: 14px;
    }

    .post-top {
      display: flex;
      align-items: center;
      justify-content: flex-end;

      margin-bottom: 14px;
    }

    .post-author {
      display: flex;
      align-items: center;
      gap: 9px;

      color: var(--muted);

      font-size: 0.75rem;
    }

    .post-mini-avatar {
      width: 27px;
      height: 27px;

      border-radius: 50%;
      overflow: hidden;

      background: #eee;
    }

    .post-mini-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .post-type {
      color: var(--muted-light);
      font-size: 0.72rem;
    }

    .post-content {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 180px;

      gap: 28px;

      align-items: center;
    }

    .post-text {
      min-width: 0;
    }

    .post h3 {
      margin: 0 0 8px;

      font-family: var(--serif);

      font-size: clamp(1.45rem, 3vw, 2rem);
      line-height: 1.15;

      letter-spacing: -0.03em;
      font-weight: 600;
    }

    .post-excerpt {
      margin: 0 0 14px;

      color: #555;

      font-family: var(--serif);

      font-size: 1rem;
      line-height: 1.48;

      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;

      overflow: hidden;
    }

    .post-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;

      margin-bottom: 13px;
    }

    .post-tag {
      padding: 5px 9px;

      border-radius: 999px;

      background: #f2f2f2;

      color: #666;

      font-size: 0.68rem;
      font-weight: 500;
    }

    .post-footer {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 14px;

      color: var(--muted);

      font-size: 0.73rem;
    }

    .post-footer span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .post-open {
      border: 0;
      padding: 0;

      background: transparent;

      color: var(--text);

      font-size: 0.73rem;
      font-weight: 700;

      cursor: pointer;
    }

    .post-open:hover {
      color: var(--green);
    }

    .post-image {
      width: 180px;
      height: 120px;

      border: 1px solid var(--border);

      border-radius: 3px;

      overflow: hidden;

      background:
        linear-gradient(
          135deg,
          #f2f2f2,
          #e5e5e5
        );

      cursor: pointer;

      position: relative;
    }

    .post-image img {
      width: 100%;
      height: 100%;

      object-fit: cover;

      transition:
        transform 0.35s ease;
    }

    .post-image:hover img {
      transform: scale(1.035);
    }

    .post-image.placeholder {
      display: grid;
      place-items: center;

      color: #999;

      font-size: 2rem;
    }

    /* =========================================================
       EXPERIENCE
    ========================================================= */

    .experience-section {
      width: min(760px, 100%);
      margin: auto;

      padding: 55px 0 75px;

      border-top: 1px solid var(--border);
    }

    .section-label {
      margin-bottom: 7px;

      color: var(--green);

      font-size: 0.7rem;
      font-weight: 700;

      text-transform: uppercase;
      letter-spacing: 0.09em;
    }

    .section-title {
      margin: 0 0 28px;

      font-family: var(--serif);

      font-size: 2rem;
      line-height: 1.1;

      letter-spacing: -0.03em;
    }

    .experience-item {
      display: grid;
      grid-template-columns: 65px minmax(0, 1fr);

      gap: 20px;

      padding: 26px 0;

      border-top: 1px solid var(--border);
    }

    .experience-item:first-of-type {
      border-top: 0;
    }

    .experience-logo {
      width: 54px;
      height: 54px;

      border-radius: 50%;

      display: grid;
      place-items: center;

      background: #f1f1f1;

      border: 1px solid #ddd;

      color: #444;

      font-size: 0.68rem;
      font-weight: 800;
    }

    .experience-date {
      color: var(--muted);

      font-size: 0.73rem;

      margin-bottom: 6px;
    }

    .experience-item h3 {
      margin: 0 0 3px;

      font-family: var(--serif);

      font-size: 1.35rem;
      line-height: 1.2;
    }

    .experience-company {
      margin: 0 0 10px;

      color: #555;

      font-size: 0.82rem;
      font-weight: 600;
    }

    .experience-description {
      margin: 0;

      color: #555;

      font-family: var(--serif);

      font-size: 0.98rem;

      line-height: 1.5;
    }

    .experience-action {
      margin-top: 13px;

      border: 0;

      padding: 0;

      background: transparent;

      color: var(--green);

      font-size: 0.75rem;
      font-weight: 700;
    }

    .experience-assets {
      display: none;

      margin-top: 18px;

      padding-top: 16px;

      border-top: 1px solid var(--border);
    }

    .experience-assets.open {
      display: grid;
      gap: 7px;
    }

    .asset {
      display: flex;
      align-items: center;
      gap: 11px;

      padding: 10px;

      border-radius: 5px;

      background: #f7f7f7;

      font-size: 0.76rem;
    }

    .asset:hover {
      background: #f0f0f0;
    }

    .asset-icon {
      width: 30px;
      height: 30px;

      display: grid;
      place-items: center;

      border-radius: 50%;

      background: white;

      color: var(--green);
    }

    .asset-text {
      min-width: 0;
      flex: 1;
    }

    .asset-text strong {
      display: block;

      font-size: 0.76rem;
    }

    .asset-text span {
      display: block;

      color: var(--muted);

      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* =========================================================
       ABOUT
    ========================================================= */

    .about-section {
      width: min(760px, 100%);
      margin: auto;

      padding: 50px 0 70px;

      border-top: 1px solid var(--border);
    }

    .about-content {
      font-family: var(--serif);

      color: #444;

      font-size: 1.08rem;
      line-height: 1.7;
    }

    .about-content p {
      margin: 0 0 18px;
    }

    .skills {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;

      margin-top: 25px;
    }

    .skill {
      padding: 7px 10px;

      background: #f4f4f4;

      border-radius: 999px;

      color: #555;

      font-size: 0.72rem;
      font-family: var(--sans);
    }

    /* =========================================================
       CONTACT
    ========================================================= */

    .contact-section {
      width: min(760px, 100%);
      margin: auto;

      padding: 55px 0 90px;

      border-top: 1px solid var(--border);

      text-align: center;
    }

    .contact-section h2 {
      margin: 0 0 10px;

      font-family: var(--serif);

      font-size: clamp(2rem, 5vw, 3rem);

      letter-spacing: -0.04em;
    }

    .contact-section p {
      max-width: 550px;

      margin: 0 auto 22px;

      color: var(--muted);

      font-family: var(--serif);

      font-size: 1rem;
    }

    .contact-email {
      display: inline-flex;
      align-items: center;
      gap: 9px;

      padding: 10px 17px;

      background: #242424;
      color: white;

      border-radius: 999px;

      font-size: 0.78rem;
      font-weight: 600;
    }

    .contact-socials {
      display: flex;
      justify-content: center;

      gap: 8px;

      margin-top: 18px;
    }

    /* =========================================================
       FOOTER
    ========================================================= */

    footer {
      padding: 28px 20px;

      border-top: 1px solid var(--border);

      text-align: center;

      color: var(--muted);

      font-size: 0.7rem;
    }

    /* =========================================================
       BOTTOM SHEET
    ========================================================= */

    .sheet-backdrop {
      position: fixed;
      inset: 0;

      z-index: 500;

      background: rgba(0, 0, 0, 0.42);

      opacity: 0;
      visibility: hidden;

      transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
    }

    .sheet-backdrop.open {
      opacity: 1;
      visibility: visible;
    }

    .project-sheet {
      position: fixed;

      left: 0;
      right: 0;
      bottom: 0;

      z-index: 501;

      width: min(900px, calc(100% - 28px));

      max-height: min(88vh, 900px);

      margin: auto;

      background: white;

      border-radius: 14px 14px 0 0;

      box-shadow: var(--shadow);

      transform: translateY(105%);

      transition:
        transform 0.36s cubic-bezier(.22,.8,.25,1);

      overflow: hidden;

      display: flex;
      flex-direction: column;
    }

    .project-sheet.open {
      transform: translateY(0);
    }

    .sheet-handle {
      width: 42px;
      height: 4px;

      border-radius: 999px;

      background: #d0d0d0;

      margin: 10px auto 5px;

      flex: 0 0 auto;
    }

    .sheet-header {
      display: flex;
      align-items: center;
      justify-content: space-between;

      gap: 15px;

      padding: 10px 22px 15px;

      border-bottom: 1px solid var(--border);

      flex: 0 0 auto;
    }

    .sheet-header-label {
      color: var(--green);

      font-size: 0.68rem;
      font-weight: 700;

      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .sheet-close {
      width: 36px;
      height: 36px;

      display: grid;
      place-items: center;

      border: 0;
      border-radius: 50%;

      background: #f2f2f2;

      color: #555;
    }

    .sheet-close:hover {
      background: #e7e7e7;
      color: #111;
    }

    .sheet-scroll {
      overflow-y: auto;

      padding: 35px 35px 55px;

      overscroll-behavior: contain;
    }

    .sheet-article {
      width: min(720px, 100%);

      margin: auto;
    }

    .sheet-title {
      margin: 0 0 10px;

      font-family: var(--serif);

      font-size: clamp(2.2rem, 5vw, 3.6rem);

      line-height: 1.02;

      letter-spacing: -0.045em;
    }

    .sheet-subtitle {
      margin: 0 0 20px;

      color: var(--muted);

      font-family: var(--serif);

      font-size: 1.1rem;

      line-height: 1.5;
    }

    .sheet-meta {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;

      margin-bottom: 28px;

      color: var(--muted);

      font-size: 0.73rem;
    }

    .sheet-meta .green {
      color: var(--green);
      font-weight: 700;
    }

    .sheet-hero {
      width: 100%;

      max-height: 430px;

      border-radius: 5px;

      overflow: hidden;

      margin-bottom: 30px;

      background: #f2f2f2;

      border: 1px solid var(--border);
    }

    .sheet-hero img {
      width: 100%;
      max-height: 430px;

      object-fit: cover;
    }

    .sheet-placeholder {
      height: 300px;

      display: grid;
      place-items: center;

      color: #aaa;

      font-size: 4rem;
    }

    .sheet-body {
      font-family: var(--serif);

      color: #363636;

      font-size: 1.1rem;

      line-height: 1.75;
    }

    .sheet-body p {
      margin: 0 0 20px;
    }

    .sheet-body h4 {
      margin: 34px 0 10px;

      font-family: var(--sans);

      font-size: 0.8rem;

      text-transform: uppercase;
      letter-spacing: 0.07em;
    }

    .sheet-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;

      margin: 18px 0 28px;
    }

    .sheet-tag {
      padding: 7px 10px;

      background: #f2f2f2;

      border-radius: 999px;

      font-family: var(--sans);

      color: #555;

      font-size: 0.7rem;
    }

    .sheet-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;

      margin-top: 28px;

      padding-top: 22px;

      border-top: 1px solid var(--border);
    }

    .sheet-btn {
      min-height: 40px;

      padding: 9px 15px;

      display: inline-flex;
      align-items: center;
      justify-content: center;

      gap: 8px;

      border-radius: 999px;

      border: 1px solid #242424;

      background: #242424;
      color: white;

      font-family: var(--sans);

      font-size: 0.76rem;
      font-weight: 600;
    }

    .sheet-btn:hover {
      background: #000;
    }

    .sheet-btn.secondary {
      background: white;
      color: #242424;

      border-color: #ccc;
    }

    .sheet-btn.secondary:hover {
      background: #f7f7f7;
    }

    .sheet-gallery {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));

      gap: 10px;

      margin-top: 20px;
    }

    .sheet-gallery button {
      padding: 0;

      border: 1px solid var(--border);

      border-radius: 4px;

      overflow: hidden;

      background: #f3f3f3;

      aspect-ratio: 16 / 10;
    }

    .sheet-gallery img {
      width: 100%;
      height: 100%;

      object-fit: cover;

      transition: transform 0.25s ease;
    }

    .sheet-gallery button:hover img {
      transform: scale(1.03);
    }

    /* =========================================================
       IMAGE LIGHTBOX
    ========================================================= */

    .lightbox {
      position: fixed;
      inset: 0;

      z-index: 900;

      display: flex;
      align-items: center;
      justify-content: center;

      padding: 25px;

      background: rgba(0, 0, 0, 0.88);

      opacity: 0;
      visibility: hidden;

      transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
    }

    .lightbox.open {
      opacity: 1;
      visibility: visible;
    }

    .lightbox img {
      max-width: min(1200px, 94vw);
      max-height: 88vh;

      border-radius: 5px;

      background: white;
    }

    .lightbox-close {
      position: absolute;

      top: 18px;
      right: 18px;

      width: 42px;
      height: 42px;

      display: grid;
      place-items: center;

      border: 0;
      border-radius: 50%;

      background: rgba(255,255,255,.14);

      color: white;

      font-size: 1.1rem;
    }

    /* =========================================================
       RESPONSIVE
    ========================================================= */

    @media (max-width: 800px) {
      .topnav {
        display: none;
      }

      .topbar-inner,
      .page {
        width: min(100% - 28px, var(--max));
      }

      .author {
        padding: 50px 0 45px;
      }

      .author-inner {
        grid-template-columns: 60px minmax(0, 1fr);

        gap: 16px;
      }

      .author-avatar {
        width: 60px;
        height: 60px;
      }

      .author h1 {
        font-size: clamp(2rem, 10vw, 3.2rem);
      }

      .author-description {
        font-size: 1.05rem;
      }

      .post-content {
        grid-template-columns: minmax(0, 1fr) 135px;

        gap: 18px;
      }

      .post-image {
        width: 135px;
        height: 100px;
      }

      .post h3 {
        font-size: 1.35rem;
      }

      .post-excerpt {
        font-size: 0.94rem;
      }

      .project-sheet {
        width: 100%;
        max-height: 94vh;
      }

      .sheet-scroll {
        padding: 28px 20px 45px;
      }
    }

    @media (max-width: 560px) {
      .topbar {
        height: 62px;
      }

      .brand-name {
        display: none;
      }

      .top-actions .round-link.hide-mobile {
        display: none;
      }

      .author {
        padding: 38px 0 35px;
      }

      .author-inner {
        grid-template-columns: 1fr;
      }

      .author-avatar {
        width: 64px;
        height: 64px;
      }

      .author h1 {
        font-size: 2.55rem;
      }

      .author-description {
        font-size: 1rem;
      }

      .author-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
      }

      .author-btn {
        width: 100%;
      }

      .author-btn:first-child {
        grid-column: 1 / -1;
      }

      .feed {
        padding-top: 28px;
      }

      .feed-heading {
        display: block;
      }

      .feed-filter {
        display: block;
        margin-top: 8px;
      }

      .post {
        padding: 24px 0;
      }

      .post-content {
        grid-template-columns: minmax(0, 1fr) 100px;

        gap: 13px;
      }

      .post-image {
        width: 100px;
        height: 82px;
      }

      .post h3 {
        font-size: 1.2rem;
      }

      .post-excerpt {
        font-size: 0.9rem;

        -webkit-line-clamp: 2;
      }

      .post-tags {
        margin-bottom: 9px;
      }

      .post-footer {
        gap: 9px;
      }

      .post-footer span:nth-child(2) {
        display: none;
      }

      .experience-item {
        grid-template-columns: 45px minmax(0, 1fr);

        gap: 12px;
      }

      .experience-logo {
        width: 42px;
        height: 42px;

        font-size: 0.6rem;
      }

      .experience-item h3 {
        font-size: 1.15rem;
      }

      .experience-description {
        font-size: 0.95rem;
      }

      .sheet-title {
        font-size: 2.2rem;
      }

      .sheet-subtitle {
        font-size: 1rem;
      }

      .sheet-gallery {
        grid-template-columns: 1fr;
      }

      .sheet-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
      }

      .sheet-btn {
        width: 100%;
      }
    }

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

/* =========================================================
   LANGUAGE SWITCHER
========================================================= */

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: #f1f1f1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  user-select: none;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
  font-weight: 800;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
