/* ./styles.css */

@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap");

:root {
  --bg: #f5f9f1;
  --surface: #ffffff;
  --surface-soft: #edf6e9;
  --ink: #10291c;
  --soft: #3c5c47;
  --muted: #708377;
  --green: #087443;
  --green-dark: #043d27;
  --green-mid: #35a466;
  --pale: #dff3d8;
  --lime: #d9f276;
  --blue: #2789c7;
  --purple: #7568cf;
  --orange: #d18d2f;
  --line: #cfe3d1;
  --line-dark: #9fc3a5;
  --dark: #092d1d;
  --max: 1180px;
  --radius: 16px;
  --shadow: 0 22px 65px rgba(26, 84, 43, 0.11);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: "Manrope", "Noto Sans Thai", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #ffffff;
  background: var(--green);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

.container {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

/* ---------- Cursor effect ---------- */

.cursor-orb {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.12;
  filter: blur(55px);
  background: var(--lime);
  transform: translate(-50%, -50%);
  transition:
    left 0.12s linear,
    top 0.12s linear;
}

/* ---------- Navigation ---------- */

.site-header {
  position: fixed;
  top: 22px;
  right: 0;
  left: 0;
  z-index: 50;
  pointer-events: none;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.site-header.nav-hidden {
  opacity: 0;
  transform: translateY(-100px);
}

.floating-nav {
  width: fit-content;
  max-width: calc(100% - 30px);
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: 7px;
  border: 1px solid rgba(159, 195, 165, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 16px 45px rgba(24, 82, 42, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-links a {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 17px;
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 7px 18px rgba(8, 116, 67, 0.2);
  transform: translateY(-1px);
}

.nav-toggle {
  width: 40px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.nav-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Shared typography ---------- */

.eyebrow,
.project-meta,
.contact-label,
.tool-category-number,
.tool-count {
  font-family: "DM Mono", monospace;
}

.eyebrow {
  color: var(--green);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 50px;
}

.section-heading h2,
.contact-layout h2 {
  margin-top: 14px;
  font-size: clamp(2.7rem, 5vw, 5.6rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.08em;
}

.section-heading h2 em,
.contact-layout h2 em,
.hero h1 em {
  color: var(--green);
  font-style: normal;
}

.section-heading > p {
  max-width: 410px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.9;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 860px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 150px 0 85px;
  background:
    radial-gradient(
      circle at 78% 35%,
      rgba(213, 242, 160, 0.85),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      #f7fbf4 0%,
      #eaf6e6 58%,
      #d9efd5 100%
    );
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(93, 155, 103, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 155, 103, 0.26) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: linear-gradient(to bottom, #000000, transparent 84%);
  mask-image: linear-gradient(to bottom, #000000, transparent 84%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(4px);
}

.hero-glow-a {
  width: 330px;
  height: 330px;
  top: 70px;
  left: -170px;
  background: rgba(217, 242, 118, 0.58);
}

.hero-glow-b {
  width: 320px;
  height: 320px;
  right: -150px;
  bottom: 30px;
  background: rgba(169, 224, 178, 0.6);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 70px;
}

.hero-copy {
  min-width: 0;
}

.availability {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  padding: 8px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
}

.availability span,
.online i {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green-mid);
  box-shadow: 0 0 0 5px rgba(53, 164, 102, 0.14);
}

.hero h1 {
  max-width: 780px;
  margin-top: 19px;
  font-size: clamp(4rem, 8vw, 8.8rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.1em;
}

.hero-role {
  max-width: 680px;
  margin-top: 31px;
  color: var(--soft);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  font-weight: 800;
  line-height: 1.55;
}

.hero-description {
  max-width: 650px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.9;
}

.hero-description strong {
  color: var(--green-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 19px;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 9px 22px rgba(28, 83, 43, 0.08);
  font-size: 0.77rem;
  font-weight: 800;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.button:hover {
  border-color: var(--green);
  box-shadow: 0 15px 30px rgba(28, 83, 43, 0.14);
  transform: translateY(-4px);
}

.button-primary {
  border-color: var(--green);
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(8, 116, 67, 0.22);
}

.button-primary:hover {
  color: #ffffff;
  background: var(--green-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 27px;
  margin-top: 54px;
}

.hero-stats div {
  padding-left: 14px;
  border-left: 2px solid var(--green);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 1.04rem;
}

.hero-stats span {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
}

/* ---------- Hero visual ---------- */

.hero-visual {
  position: relative;
  width: 510px;
  max-width: 100%;
  min-height: 510px;
  justify-self: end;
}

.visual-ring {
  position: absolute;
  border: 1px solid rgba(23, 131, 79, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.ring-1 {
  width: 510px;
  height: 510px;
  top: 0;
  left: 0;
}

.ring-2 {
  width: 390px;
  height: 390px;
  top: 60px;
  left: 60px;
}

.ring-3 {
  width: 280px;
  height: 280px;
  top: 115px;
  left: 115px;
  border-style: dashed;
}

.profile-card {
  position: absolute;
  top: 38px;
  left: 88px;
  z-index: 2;
  width: 325px;
  min-height: 410px;
  padding: 27px;
  border: 1px solid rgba(117, 172, 126, 0.9);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(222, 243, 215, 0.9)
    );
  box-shadow: 25px 30px 75px rgba(20, 89, 39, 0.2);
  transform: rotate(-6deg);
}

.profile-card-top,
.profile-data {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.profile-card-top,
.profile-data,
.profile-card p {
  font-family: "DM Mono", monospace;
}

.profile-card-top {
  color: var(--muted);
  font-size: 0.6rem;
}

.online {
  color: var(--green-mid);
  font-size: 0.57rem;
}

.online i {
  width: 6px;
  height: 6px;
  margin-right: 4px;
  box-shadow: none;
}

.profile-avatar {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  margin: 56px auto 27px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
  box-shadow: 14px 14px 0 var(--lime);
  font-family: "DM Mono", monospace;
  font-size: 2.2rem;
}

.profile-avatar > i {
  position: absolute;
  right: -11px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--green-mid);
}

.profile-card h2 {
  color: var(--green-dark);
  font-size: 1.38rem;
}

.profile-card > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.64rem;
}

.profile-divider {
  height: 1px;
  margin: 24px 0 18px;
  background: var(--line);
}

.profile-data {
  font-size: 0.61rem;
}

.profile-data small,
.profile-data strong {
  display: block;
}

.profile-data small {
  margin-bottom: 4px;
  color: var(--muted);
}

.profile-data strong {
  color: var(--soft);
  font-weight: 500;
}

.floating-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--line-dark);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 17px 35px rgba(25, 86, 40, 0.15);
  backdrop-filter: blur(12px);
  font-family: "DM Mono", monospace;
}

.floating-award {
  top: 72px;
  right: -8px;
}

.floating-code {
  right: 0;
  bottom: 32px;
}

.floating-card b {
  color: var(--green);
  font-size: 1.2rem;
}

.floating-card small,
.floating-card strong {
  display: block;
}

.floating-card small {
  color: var(--muted);
  font-size: 0.55rem;
}

.floating-card strong {
  color: var(--green-dark);
  font-size: 0.62rem;
  font-weight: 500;
}

.hero-bottom {
  position: absolute;
  bottom: 31px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero-bottom i {
  width: 80px;
  height: 1px;
  background: var(--line-dark);
}

.hero-bottom span:last-child {
  margin-left: auto;
}

/* ---------- Work toolbar ---------- */

.work-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.search-box {
  width: 290px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--green);
  background: var(--surface);
  box-shadow: 0 7px 20px rgba(25, 78, 40, 0.05);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(8, 116, 67, 0.1);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.78rem;
}

.search-box input::placeholder {
  color: #91a096;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.filter {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: var(--surface);
  font-size: 0.7rem;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.filter:hover,
.filter.active {
  border-color: var(--green);
  color: #ffffff;
  background: var(--green);
  transform: translateY(-1px);
}

.result-count {
  margin: 16px 0;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
}

/* ---------- Project cards ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.project-card:hover {
  border-color: var(--line-dark);
  box-shadow: 0 28px 75px rgba(25, 89, 44, 0.16);
  transform: translateY(-7px);
}

.project-wide,
.project-featured {
  grid-column: span 2;
}

.project-art {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}

.art-grid,
.edge-grid,
.security-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(8, 116, 67, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 116, 67, 0.45) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* AI project */

.art-ai {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d9f4d3, #82c78c);
}

.art-orbit {
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(8, 116, 67, 0.65);
  border-radius: 50%;
  transform: rotate(35deg) skewX(-20deg);
}

.orbit-b {
  width: 120px;
  height: 250px;
  transform: rotate(-52deg) skewX(-20deg);
}

.art-core {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 0 0 14px rgba(8, 116, 67, 0.13);
  font-family: "DM Mono", monospace;
}

.art-ai > span:last-child {
  position: absolute;
  right: 20px;
  bottom: 16px;
  color: var(--green-dark);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
}

/* Edge AI project */

.art-edge,
.art-security {
  background: var(--dark);
}

.edge-grid,
.security-pattern {
  background-image:
    linear-gradient(rgba(217, 242, 118, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 242, 118, 0.55) 1px, transparent 1px);
}

.edge-title,
.edge-subtitle {
  position: absolute;
  color: var(--lime);
  font-family: "DM Mono", monospace;
}

.edge-title {
  top: 22px;
  left: 23px;
  font-size: 1.4rem;
}

.edge-subtitle {
  right: 23px;
  bottom: 20px;
  font-size: 0.58rem;
}

.node {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--lime);
  border-radius: 50%;
  background: var(--dark);
  box-shadow: 0 0 0 8px rgba(217, 242, 118, 0.11);
}

.node-a {
  top: 105px;
  left: 27%;
}

.node-b {
  top: 75px;
  right: 25%;
}

.node-c {
  bottom: 40px;
  left: 53%;
}

.edge-line {
  position: absolute;
  height: 1px;
  background: var(--lime);
  transform-origin: left center;
}

.edge-line-a {
  top: 112px;
  left: 29%;
  width: 190px;
  transform: rotate(-12deg);
}

.edge-line-b {
  top: 112px;
  left: 53%;
  width: 100px;
  transform: rotate(74deg);
}

/* Hospital project */

.art-hospital {
  background: linear-gradient(135deg, #c8ebcc, #70ba83);
}

.hospital-cross {
  position: absolute;
  top: 18px;
  left: 35px;
  color: rgba(8, 116, 67, 0.21);
  font-size: 11rem;
  font-weight: 800;
  line-height: 0.8;
}

.hospital-label {
  position: absolute;
  top: 25px;
  right: 25px;
  color: var(--green-dark);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  line-height: 1.7;
  text-align: right;
}

.art-hospital > strong {
  position: absolute;
  right: 25px;
  bottom: 19px;
  color: var(--green-dark);
  font-family: "DM Mono", monospace;
  font-size: 2.8rem;
  font-weight: 500;
}

.hospital-wave {
  position: absolute;
  right: 14%;
  bottom: 57px;
  width: 45%;
  height: 45px;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
  transform: skewY(-18deg);
}

/* Security and code projects */

.art-security,
.art-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.art-security {
  color: var(--lime);
}

.art-security > strong,
.art-code > strong {
  position: relative;
  z-index: 1;
  font-family: "DM Mono", monospace;
  font-size: 4.5rem;
  font-weight: 500;
}

.art-security > span,
.art-code > span {
  position: relative;
  z-index: 1;
  color: #c4dfc6;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  line-height: 1.7;
}

.art-code {
  color: var(--green-dark);
  background: linear-gradient(135deg, #e1f3d6, #edf4bd);
}

.art-code > span {
  color: var(--green);
}

.code-dots {
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 120px;
  height: 65px;
  opacity: 0.55;
  background-image: radial-gradient(var(--green) 2px, transparent 2px);
  background-size: 18px 18px;
}

/* Cyber club project */

.art-club {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--lime);
  background: linear-gradient(135deg, #123d29, #29905a);
}

.club-icon {
  font-size: 3rem;
}

.art-club strong {
  font-family: "DM Mono", monospace;
  font-size: 1.5rem;
  line-height: 1;
}

.art-club small {
  color: #d0e8c9;
  font-family: "DM Mono", monospace;
  font-size: 0.56rem;
}

/* Project content */

.project-body {
  padding: 28px 31px 32px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--green);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-meta b {
  color: var(--green-mid);
  font-weight: 500;
}

.project-body h3 {
  max-width: 780px;
  margin: 22px 0 13px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.28;
  letter-spacing: -0.045em;
}

.project-body p {
  max-width: 740px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.9;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.tags span {
  padding: 5px 9px;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  color: var(--soft);
  background: #f7fbf5;
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
}

.project-result {
  margin-top: 25px;
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
}

.project-footer a {
  color: var(--green);
  font-weight: 500;
}

.project-footer a:hover {
  text-decoration: underline;
}

.empty-state {
  padding: 45px 20px;
  color: var(--muted);
  text-align: center;
}

.is-hidden {
  display: none !important;
}

/* ---------- Technical skills / Tools ---------- */

.skills-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 91% 9%,
      rgba(217, 242, 118, 0.43),
      transparent 21rem
    ),
    radial-gradient(
      circle at 7% 75%,
      rgba(117, 104, 207, 0.1),
      transparent 24rem
    ),
    linear-gradient(
      180deg,
      #edf6e8 0%,
      #f6faf3 50%,
      #edf6e8 100%
    );
}

.skills-section::before {
  content: "";
  position: absolute;
  top: 8rem;
  right: -13rem;
  width: 36rem;
  height: 36rem;
  border: 1px solid rgba(8, 116, 67, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(8, 116, 67, 0.025),
    0 0 0 8rem rgba(8, 116, 67, 0.018);
  pointer-events: none;
}

.skills-section > .container {
  position: relative;
  z-index: 1;
}

.tool-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.tool-category {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(159, 195, 165, 0.72);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.77);
  box-shadow:
    0 17px 45px rgba(26, 84, 43, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tool-category-wide {
  grid-column: 1 / -1;
}

.tool-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.tool-category-header > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-category-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(8, 116, 67, 0.2);
  font-size: 0.65rem;
}

.tool-category-header h3 {
  min-width: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.tool-count {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(245, 249, 241, 0.8);
  font-size: 0.58rem;
  white-space: nowrap;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.tool-list-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-card {
  --tool-color: var(--green);

  position: relative;
  min-width: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98),
      color-mix(in srgb, var(--tool-color) 6%, #ffffff)
    );
  box-shadow: 0 5px 15px rgba(25, 78, 40, 0.045);
  isolation: isolate;
  transition:
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -27px;
  right: -27px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--tool-color);
  opacity: 0.07;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.tool-card:hover {
  z-index: 2;
  border-color: color-mix(
    in srgb,
    var(--tool-color) 48%,
    var(--line)
  );
  box-shadow:
    0 12px 24px color-mix(
      in srgb,
      var(--tool-color) 12%,
      transparent
    );
  transform: translateY(-3px);
}

.tool-card:hover::before {
  opacity: 0.14;
  transform: scale(1.25);
}

.tool-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  overflow: hidden;
  border: 1px solid color-mix(
    in srgb,
    var(--tool-color) 23%,
    var(--line)
  );
  border-radius: 10px;
  background: color-mix(
    in srgb,
    var(--tool-color) 9%,
    #ffffff
  );
  transition:
    background 0.24s ease,
    transform 0.24s ease;
}

.tool-card:hover .tool-icon {
  background: color-mix(
    in srgb,
    var(--tool-color) 14%,
    #ffffff
  );
  transform: rotate(-3deg) scale(1.04);
}

.tool-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.tool-svg-icon {
  color: var(--tool-color);
}

.tool-svg-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-card > strong {
  min-width: 0;
  color: var(--ink);
  font-size: clamp(0.83rem, 1vw, 0.98rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.018em;
  overflow-wrap: anywhere;
}

.tool-image-fallback {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--tool-color);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* Programming language colors */

.tool-rust {
  --tool-color: #ce422b;
}

.tool-python {
  --tool-color: #3776ab;
}

.tool-c {
  --tool-color: #659ad2;
}

.tool-cpp {
  --tool-color: #00599c;
}

.tool-javascript {
  --tool-color: #c3a900;
}

.tool-typescript {
  --tool-color: #3178c6;
}

/* Web and runtime colors */

.tool-html {
  --tool-color: #e34f26;
}

.tool-css {
  --tool-color: #663399;
}

.tool-node {
  --tool-color: #5fa04e;
}

.tool-bun {
  --tool-color: #171717;
}

.tool-rest {
  --tool-color: #7957d5;
}

.tool-web {
  --tool-color: #0c9875;
}

/* Database and infrastructure colors */

.tool-mysql {
  --tool-color: #4479a1;
}

.tool-mariadb {
  --tool-color: #003545;
}

.tool-postgresql {
  --tool-color: #4169e1;
}

.tool-redis {
  --tool-color: #e34039;
}

.tool-docker {
  --tool-color: #2496ed;
}

.tool-ubuntu {
  --tool-color: #e95420;
}

.tool-linux {
  --tool-color: #b78f00;
}

.tool-virtualbox {
  --tool-color: #183a61;
}

/* AI and research colors */

.tool-ml {
  --tool-color: #8058d5;
}

.tool-lstm {
  --tool-color: #6750c7;
}

.tool-pose {
  --tool-color: #dc6b40;
}

.tool-data {
  --tool-color: #287bb5;
}

.tool-agent {
  --tool-color: #a33fc0;
}

.tool-research {
  --tool-color: #147a58;
}

/* Cybersecurity colors */

.tool-kali {
  --tool-color: #557c94;
}

.tool-wireshark {
  --tool-color: #1679a7;
}

.tool-pentest {
  --tool-color: #c04343;
}

.tool-reverse {
  --tool-color: #8054c7;
}

.tool-osint {
  --tool-color: #21848e;
}

.tool-incident {
  --tool-color: #d07526;
}

.tool-audit {
  --tool-color: #167b4f;
}

.tool-exploit {
  --tool-color: #a43939;
}

/* Browser fallback for color-mix */

@supports not (background: color-mix(in srgb, red 10%, white)) {
  .tool-card {
    background: linear-gradient(135deg, #ffffff, #f5faf3);
  }

  .tool-card:hover {
    border-color: var(--tool-color);
    box-shadow: 0 12px 24px rgba(25, 78, 40, 0.12);
  }

  .tool-icon {
    border-color: var(--line);
    background: #f3f8f1;
  }

  .tool-card:hover .tool-icon {
    background: #edf6e9;
  }
}

/* ---------- Process ---------- */

/* ./styles.css — Process section */

.process-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(186, 226, 183, 0.34),
      transparent 28rem
    ),
    radial-gradient(
      circle at 92% 76%,
      rgba(112, 104, 207, 0.08),
      transparent 30rem
    ),
    linear-gradient(180deg, #fbfdfa 0%, #f0f7ed 100%);
}

.process-section::before {
  content: "";
  position: absolute;
  top: 13rem;
  right: -18rem;
  width: 43rem;
  height: 43rem;
  border: 1px solid rgba(8, 116, 67, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 4.5rem rgba(8, 116, 67, 0.018),
    0 0 0 9rem rgba(8, 116, 67, 0.012);
  pointer-events: none;
}

.process-section > .container {
  position: relative;
  z-index: 1;
}

/* Heading */

.process-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 46px;
}

.process-heading h2 {
  margin-top: 14px;
  font-size: clamp(2.7rem, 5vw, 5.6rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.08em;
}

.process-heading h2 em {
  color: var(--green);
  font-style: normal;
}

.process-intro {
  max-width: 440px;
  justify-self: end;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.85;
}

/* Main process cards */

.process-card {
  padding: 30px;
  border: 1px solid rgba(156, 190, 162, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 22px 65px rgba(28, 77, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.discipline-process {
  margin-top: 22px;
}

.process-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.process-card-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.process-section-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  box-shadow: 0 10px 24px rgba(8, 116, 67, 0.2);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
}

.process-section-number-alt {
  color: var(--green-dark);
  background: linear-gradient(145deg, var(--lime), #b9df66);
  box-shadow: 0 10px 24px rgba(154, 190, 68, 0.18);
}

.process-card-title p {
  margin-bottom: 3px;
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.process-card-title h3 {
  color: var(--ink);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.process-status,
.process-card-note {
  flex: 0 0 auto;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
}

.process-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid rgba(8, 116, 67, 0.2);
  border-radius: 999px;
  color: var(--green);
  background: rgba(223, 243, 216, 0.6);
}

.process-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-mid);
  box-shadow: 0 0 0 4px rgba(53, 164, 102, 0.12);
}

.process-card-note {
  color: var(--muted);
}

/* Core workflow */

.core-step-list {
  position: relative;
  list-style: none;
}

.core-step-list::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--green),
    var(--line-dark)
  );
}

.core-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(190px, 0.32fr);
  align-items: center;
  gap: 20px;
  min-height: 105px;
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--line);
}

.core-step:last-child {
  border-bottom: 0;
}

.core-step-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.core-step-marker span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 116, 67, 0.25);
  border-radius: 12px;
  color: var(--green);
  background: #f7fbf5;
  box-shadow: 0 7px 17px rgba(25, 78, 40, 0.08);
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  font-weight: 500;
}

.core-step:hover .core-step-marker span {
  color: #ffffff;
  background: var(--green);
}

.core-step-content {
  min-width: 0;
}

.core-step-label {
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.core-step-content h4 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.35;
}

.core-step-content p {
  max-width: 660px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.core-step-output {
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.core-step-output span {
  display: block;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.core-step-output strong {
  display: block;
  margin-top: 6px;
  color: var(--soft);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.55;
}

/* Discipline tabs */

.discipline-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.discipline-tab {
  min-width: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--soft);
  background: rgba(248, 251, 247, 0.9);
  text-align: left;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.discipline-tab:hover {
  border-color: var(--line-dark);
  background: #ffffff;
  transform: translateY(-2px);
}

.discipline-tab.active {
  border-color: var(--green);
  color: #ffffff;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  box-shadow: 0 12px 27px rgba(8, 116, 67, 0.18);
}

.discipline-tab-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border: 1px solid rgba(8, 116, 67, 0.18);
  border-radius: 12px;
  color: var(--green);
  background: var(--pale);
}

.discipline-tab-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.discipline-icon-research {
  color: #6658bf;
  background: #e9e6ff;
}

.discipline-icon-security {
  color: #ad5442;
  background: #f8e3dd;
}

.discipline-icon-agent {
  color: #913ea5;
  background: #f1e0f5;
}

.discipline-tab.active .discipline-tab-icon {
  border-color: rgba(217, 242, 118, 0.34);
  color: var(--lime);
  background: rgba(217, 242, 118, 0.1);
}

.discipline-tab > span:last-child {
  min-width: 0;
}

.discipline-tab strong,
.discipline-tab small {
  display: block;
}

.discipline-tab strong {
  font-size: 0.82rem;
  line-height: 1.3;
}

.discipline-tab small {
  margin-top: 3px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
}

.discipline-tab.active small {
  color: rgba(255, 255, 255, 0.64);
}

/* Discipline panels */

.discipline-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 94% 8%,
      rgba(217, 242, 118, 0.16),
      transparent 19rem
    ),
    rgba(248, 251, 247, 0.88);
}

.discipline-panel[hidden] {
  display: none;
}

.discipline-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 21px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}

.discipline-kicker {
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.discipline-panel-header h4 {
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.35;
}

.discipline-deliverable {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(8, 116, 67, 0.2);
  border-radius: 999px;
  color: var(--green);
  background: rgba(223, 243, 216, 0.64);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  white-space: nowrap;
}

.discipline-deliverable-research {
  border-color: rgba(117, 104, 207, 0.2);
  color: #6658bf;
  background: rgba(233, 230, 255, 0.72);
}

.discipline-deliverable-security {
  border-color: rgba(173, 84, 66, 0.2);
  color: #a04c3c;
  background: rgba(248, 227, 221, 0.72);
}

.discipline-deliverable-agent {
  border-color: rgba(145, 62, 165, 0.2);
  color: #843795;
  background: rgba(241, 224, 245, 0.72);
}

.discipline-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
  list-style: none;
}

.discipline-step-list li {
  position: relative;
  min-width: 0;
  min-height: 145px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  transition:
    color 0.22s ease,
    background 0.22s ease;
}

.discipline-step-list li:hover {
  color: #ffffff;
  background: var(--green);
}

.discipline-step-list li > span {
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 0.61rem;
}

.discipline-step-list li:hover > span {
  color: var(--lime);
}

.discipline-step-list li > div {
  margin-top: 31px;
}

.discipline-step-list strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.35;
}

.discipline-step-list p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.62;
}

.discipline-step-list li:hover p {
  color: rgba(255, 255, 255, 0.72);
}

.discipline-research-list li:hover {
  background: #6458b6;
}

.discipline-security-list li:hover {
  background: #8e493d;
}

.discipline-agent-list li:hover {
  background: #79398a;
}

/* Authorized security notice */

.authorization-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -3px 0 18px;
  padding: 11px 13px;
  border: 1px solid rgba(173, 84, 66, 0.18);
  border-radius: 11px;
  color: #7d5149;
  background: rgba(248, 227, 221, 0.55);
  font-size: 0.7rem;
  line-height: 1.55;
}

.authorization-notice svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: #a04c3c;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Responsive */

@media (max-width: 1000px) {
  .process-heading {
    gap: 40px;
  }

  .discipline-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .process-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .process-intro {
    justify-self: start;
  }

  .process-card {
    padding: 23px;
  }

  .core-step {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .core-step-output {
    grid-column: 2;
    padding-top: 11px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .discipline-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .process-card {
    padding: 17px;
    border-radius: 19px;
  }

  .process-card-header {
    align-items: flex-start;
    margin-bottom: 21px;
  }

  .process-section-number {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .process-card-title {
    align-items: flex-start;
    gap: 11px;
  }

  .process-card-title h3 {
    font-size: 1rem;
  }

  .process-status,
  .process-card-note {
    display: none;
  }

  .core-step-list::before {
    left: 19px;
  }

  .core-step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 13px;
    padding: 17px 0;
  }

  .core-step-marker span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .core-step-content h4 {
    font-size: 0.88rem;
  }

  .core-step-content p {
    font-size: 0.72rem;
  }

  .core-step-output {
    grid-column: 2;
  }

  .discipline-tabs {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .discipline-tab {
    min-height: 64px;
    padding: 10px 12px;
  }

  .discipline-tab-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
  }

  .discipline-panel {
    padding: 16px;
  }

  .discipline-panel-header {
    align-items: flex-start;
  }

  .discipline-deliverable {
    display: none;
  }

  .discipline-step-list {
    grid-template-columns: 1fr;
  }

  .discipline-step-list li {
    min-height: 112px;
    padding: 15px;
  }

  .discipline-step-list li > div {
    margin-top: 20px;
  }
}


/* ---------- Contact ---------- */

.contact-section {
  position: relative;
  overflow: hidden;
  border-bottom: 0;
  background:
    linear-gradient(
      130deg,
      #d8efd4,
      #b9e2bb
    );
}

.contact-orbit {
  position: absolute;
  top: -280px;
  right: -120px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(8, 116, 67, 0.23);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(8, 116, 67, 0.04),
    0 0 0 100px rgba(8, 116, 67, 0.035);
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 100px;
}

.contact-layout > div:first-child > p:last-child {
  max-width: 470px;
  margin-top: 27px;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.9;
}

.contact-panel {
  padding-top: 13px;
}

.contact-label {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 21px;
  border-bottom: 2px solid var(--green);
  color: var(--green-dark);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: var(--green);
}

.contact-email b {
  flex: 0 0 auto;
}

.contact-links {
  display: grid;
  margin-top: 20px;
}

.contact-links a,
.contact-links button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--soft);
  background: transparent;
  text-align: left;
  font-size: 0.82rem;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.contact-links a:hover,
.contact-links button:hover {
  padding-left: 7px;
  color: var(--green);
}

.contact-links small {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  text-align: right;
}

.certificate-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 34px;
  padding: 15px 17px;
  border-radius: 9px;
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 12px 25px rgba(8, 116, 67, 0.17);
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.certificate-link:hover {
  background: var(--green-dark);
  box-shadow: 0 17px 32px rgba(8, 116, 67, 0.22);
  transform: translateY(-3px);
}

/* ---------- Footer ---------- */

footer {
  padding: 26px 0;
  color: var(--muted);
  background: var(--bg);
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive: large tablet ---------- */

@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.85fr);
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
  }

  .hero-visual {
    margin-right: -45px;
    transform: scale(0.88);
    transform-origin: center;
  }

  .tool-list-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-layout {
    gap: 55px;
  }
}

/* ---------- Responsive: tablet ---------- */

@media (max-width: 860px) {
  .container {
    width: min(calc(100% - 44px), var(--max));
  }

  .hero {
    min-height: auto;
    padding-bottom: 75px;
  }

  .hero-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 45px;
  }

  .hero-visual {
    width: 510px;
    max-width: 100%;
    min-height: 510px;
    justify-self: start;
    margin-right: 0;
    transform: none;
  }

  .work-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .filters {
    justify-content: flex-start;
  }

  .tool-category-grid {
    grid-template-columns: 1fr;
  }

  .tool-category-wide {
    grid-column: auto;
  }

  .tool-list-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    gap: 48px;
  }
}

/* ---------- Responsive: mobile ---------- */

@media (max-width: 700px) {
  html {
    scroll-padding-top: 82px;
  }

  .container {
    width: min(calc(100% - 30px), var(--max));
  }

  .cursor-orb {
    display: none;
  }

  .site-header {
    top: 13px;
  }

  .floating-nav {
    width: calc(100% - 30px);
    justify-content: flex-end;
    padding: 6px 8px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    justify-content: space-between;
    border-radius: 9px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 70px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 17vw, 5.8rem);
  }

  .hero-role {
    font-size: 0.95rem;
  }

  .hero-description {
    font-size: 0.84rem;
  }

  .hero-stats {
    gap: 18px;
    margin-top: 42px;
  }

  .hero-visual {
    min-height: 405px;
    transform: scale(0.76);
    transform-origin: left top;
    margin-bottom: -95px;
  }

  .hero-bottom {
    position: relative;
    bottom: auto;
    left: auto;
    width: min(calc(100% - 30px), var(--max));
    margin-top: 15px;
    transform: none;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 37px;
  }

  .section-heading > p {
    margin-top: 23px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-wide,
  .project-featured {
    grid-column: auto;
  }

  .project-art {
    min-height: 185px;
  }

  .project-body {
    padding: 25px 22px 28px;
  }

  .project-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    min-height: 190px;
  }

  .process-step h3 {
    margin-top: 35px;
  }

  .contact-email {
    font-size: 1.1rem;
  }

  .contact-links small {
    max-width: 58%;
    overflow-wrap: anywhere;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---------- Responsive: small mobile ---------- */

@media (max-width: 520px) {
  .tool-category-grid {
    gap: 13px;
  }

  .tool-category {
    padding: 17px;
    border-radius: 17px;
  }

  .tool-category-header {
    margin-bottom: 16px;
  }

  .tool-category-number {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 0.59rem;
  }

  .tool-category-header h3 {
    font-size: 0.96rem;
  }

  .tool-count {
    padding: 5px 7px;
    font-size: 0.52rem;
  }

  .tool-list,
  .tool-list-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .tool-card {
    min-height: 57px;
    gap: 9px;
    padding: 8px 9px;
    border-radius: 11px;
  }

  .tool-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 9px;
  }

  .tool-icon img,
  .tool-svg-icon svg,
  .tool-image-fallback {
    width: 22px;
    height: 22px;
  }

  .tool-card > strong {
    font-size: 0.76rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .art-security > strong,
  .art-code > strong {
    font-size: 3.25rem;
  }

  .art-club {
    gap: 13px;
  }

  .club-icon {
    font-size: 2.25rem;
  }

  .art-club strong {
    font-size: 1.1rem;
  }
}

@media (max-width: 410px) {
  .tool-category-header {
    align-items: flex-start;
  }

  .tool-count {
    display: none;
  }

  .tool-list,
  .tool-list-wide {
    grid-template-columns: 1fr;
  }

  .tool-card > strong {
    font-size: 0.86rem;
  }

  .hero-visual {
    transform: scale(0.67);
    margin-bottom: -135px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-email {
    align-items: flex-start;
    font-size: 1rem;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-orb {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .profile-card,
  .hero-visual {
    transform: none;
  }
}
