:root{
  --bg: #0a0a0a;
  --bg-alt: #131313;
  --bg-card: #161616;
  --fg: #f4f3ef;
  --fg-dim: #8c8c88;
  --fg-faint: #5c5c58;
  --border: #2a2a28;
  --white: #ffffff;
  --focus: #ffffff;
  --radius: 2px;
  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection{ background: var(--white); color: var(--bg); }
a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }

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

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- top breadcrumb bar (frappe-desk style) ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  height: 56px;
}
.breadcrumb{
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
  display:flex;
  align-items:center;
  gap: 8px;
}
.breadcrumb .sep{ color: var(--fg-faint); }
.breadcrumb .current{ color: var(--fg); }
.breadcrumb .dot{
  width:6px; height:6px; border-radius:50%;
  background: var(--white);
  display:inline-block;
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity: 0.15; } }

nav.modules{
  display:flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12.5px;
}
nav.modules a{
  color: var(--fg-dim);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
nav.modules a:hover, nav.modules a:focus-visible{
  color: var(--fg);
  border-color: var(--fg-faint);
}
nav.modules a.active{
  color: var(--fg);
  border-color: var(--fg);
}
nav.portfolio_nav a.active{
  color: var(--fg);
}
.nav-toggle{ display:none; background:none; border:1px solid var(--border); color:var(--fg); font-family:var(--mono); font-size:12px; padding:6px 10px; cursor:pointer; }

/* ---------- hero ---------- */
.hero{
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero-label{
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 22px;
  display:flex; align-items:center; gap:10px;
}
.hero-label::before{
  content:"";
  width: 26px; height:1px;
  background: var(--fg-faint);
}
.hero h1{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.hero .role{
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--fg-dim);
  display:flex;
  flex-wrap: wrap;
  gap: 10px 0;
}
.hero .role span{
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-right: 8px;
}
.hero p.lede{
  margin-top: 32px;
  max-width: 56ch;
  font-size: 17px;
  color: var(--fg-dim);
}
.hero .actions{
  margin-top: 40px;
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn{
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 22px;
  border-radius: var(--radius);
  cursor:pointer;
  transition: all .15s ease;
  display:inline-flex; align-items:center; gap:8px;
  border: 1px solid var(--border);
}
.btn-primary{
  background: var(--white);
  color: var(--bg);
  border: 1px solid var(--white);
}
.btn-primary:hover{ background: transparent; color: var(--white); }
.btn-ghost{
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-ghost:hover{ border-color: var(--fg); }

/* ---------- home page: page-link tiles ---------- */
.tiles{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.tile{
  background: var(--bg);
  padding: 34px 28px;
  display:flex;
  flex-direction: column;
  gap: 14px;
  transition: background .15s ease;
}
.tile:hover{ background: var(--bg-alt); }
.tile .tile-id{ font-family: var(--mono); font-size: 11.5px; color: var(--fg-faint); }
.tile h3{ font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.tile p{ color: var(--fg-dim); font-size: 14px; }
.tile .go{ font-family: var(--mono); font-size: 12px; color: var(--fg); margin-top: auto; }

/* ---------- view routing (single-page, no reload) ---------- */
.view{ display: none; }
.view.active{ display: block; }
.view-inner{ padding-top: 64px; }

/* ---------- generic section chrome ---------- */
section{ padding: 88px 0; }
.view section{ border-bottom: 1px solid var(--border); }
.view section:last-of-type{ border-bottom: none; }
.section-head{
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -0.01em;
}
.section-tag{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-faint);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
}

/* ---------- about ---------- */
.about-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
}
.about-grid p{ color: var(--fg-dim); font-size: 16px; margin-bottom: 18px; max-width: 60ch; }
.about-grid p:last-child{ margin-bottom:0; }
.field-list{ border-top: 1px solid var(--border); }
.field-row{
  display:flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.field-row .k{ font-family: var(--mono); color: var(--fg-faint); }
.field-row .v{ color: var(--fg); text-align: right; }

/* ---------- skills ---------- */
.tag-grid{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-dim);
  border: 1px solid var(--border);
  padding: 9px 15px;
  border-radius: var(--radius);
  transition: border-color .15s ease, color .15s ease;
}
.tag:hover{ border-color: var(--fg); color: var(--fg); }

/* ---------- projects: doctype record cards ---------- */
.records{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.record{
  background: var(--bg);
  padding: 30px;
  display:flex;
  flex-direction: column;
  gap: 18px;
}
.record-top{
  display:flex;
  justify-content: space-between;
  align-items:flex-start;
}
.record-id{ font-family: var(--mono); font-size: 11.5px; color: var(--fg-faint); }
.status{
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border: 1px solid var(--fg-faint);
  color: var(--fg-dim);
  border-radius: var(--radius);
}
.status.live{ border-color: var(--fg); color: var(--fg); }
.record h3{
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
}
.record p{ color: var(--fg-dim); font-size: 14px; }
.record .stack{
  display:flex; flex-wrap:wrap; gap:6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.record .stack span{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-faint);
}
.record .stack span:not(:last-child)::after{ content:"·"; margin-left:6px; color: var(--fg-faint); }
.record .link-out{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg);
  border-bottom: 1px solid var(--fg-faint);
  width: fit-content;
}


/* ---------- top-right contact button ---------- */
.top-contact-btn{
  flex:0 0 auto; font-family:var(--mono); font-size:12px; padding:8px 14px;
  color:var(--bg); background:var(--white); border:1px solid var(--white);
  border-radius:var(--radius); cursor:pointer; transition:all .18s ease;
}
.top-contact-btn:hover{ color:var(--white); background:transparent; }

/* ---------- home hero photo ---------- */
.hero-grid{ display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:64px; align-items:center; }
.hero-copy{ min-width:0; }
.hero-photo{ justify-self:end; width:100%; max-width:330px; }
.hero-photo-frame{
  position:relative;
  overflow:hidden;
  border:2px solid var(--fg);
  background:var(--bg-card);
  width:280px;
  height:280px;
  aspect-ratio:1 / 1;
  border-radius:50%;
  margin:0 auto;
  box-shadow:0 0 0 8px var(--bg), 0 0 0 9px var(--border);
}
.hero-photo-frame::after{
  content:"";
  position:absolute;
  inset:10px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  pointer-events:none;
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; object-position:center top; border-radius:50%; }
.hero-photo-caption{ margin-top:10px; font-family:var(--mono); font-size:10.5px; color:var(--fg-faint); letter-spacing:.08em; }

/* ---------- right-to-left contact drawer ---------- */
body.drawer-open{ overflow:hidden; }
.contact-drawer-backdrop{ position:fixed; inset:0; z-index:90; background:rgba(0,0,0,.62); opacity:0; visibility:hidden; transition:opacity .24s ease,visibility .24s ease; }
.contact-drawer-backdrop.open{ opacity:1; visibility:visible; }
.contact-drawer{ position:fixed; z-index:100; top:0; right:0; width:min(520px,92vw); height:100vh; overflow-y:auto; background:var(--bg-card); border-left:1px solid var(--border); box-shadow:-24px 0 60px rgba(0,0,0,.35); transform:translateX(100%); transition:transform .28s cubic-bezier(.22,.61,.36,1); }
.contact-drawer.open{ transform:translateX(0); }
.drawer-header{ position:sticky; top:0; z-index:2; display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:24px 28px; background:rgba(22,22,22,.96); backdrop-filter:blur(10px); border-bottom:1px solid var(--border); }
.drawer-kicker{ font-family:var(--mono); text-transform:uppercase; font-size:10px; letter-spacing:.12em; color:var(--fg-faint); margin-bottom:6px; }
.drawer-header h2{ font-family:var(--display); font-size:1.65rem; font-weight:600; }
.drawer-close{ width:38px; height:38px; flex:0 0 auto; display:grid; place-items:center; background:transparent; color:var(--fg); border:1px solid var(--border); font-size:25px; line-height:1; cursor:pointer; transition:border-color .15s ease,background .15s ease; }
.drawer-close:hover{ border-color:var(--fg); background:var(--bg-alt); }
.contact-drawer form{ padding:28px; }
.contact-drawer .field{ margin-bottom:26px; }
.contact-drawer .field textarea{ min-height:150px; }
.drawer-footer{ margin-top:12px; }
.contact-drawer .form-note{ margin-top:14px; }

/* ---------- experience: log ---------- */
.log{ border-top: 1px solid var(--border); }
.log-entry{
  display:grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.log-entry .date{ font-family: var(--mono); font-size: 12.5px; color: var(--fg-faint); padding-top: 3px; }
.log-entry .role h3{ font-family: var(--display); font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.log-entry .role .org{ font-family: var(--mono); font-size: 12.5px; color: var(--fg-dim); }
.log-entry .desc{ color: var(--fg-dim); font-size: 14px; }

/* ---------- contact: new-doc form ---------- */
.form-shell{
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.form-titlebar{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.form-titlebar .name{ font-family: var(--mono); font-size: 12.5px; color: var(--fg-dim); }
.form-titlebar .draft{
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--fg-faint);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: var(--radius);
}
form{ padding: 32px 24px; }
.field{ margin-bottom: 26px; }
.field label{
  display:block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dim);
  margin-bottom: 9px;
  letter-spacing: 0.02em;
}
.field label .req{ color: var(--fg); }
.field input, .field textarea{
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  padding: 10px 2px;
  transition: border-color .15s ease;
  resize: vertical;
}
.field textarea{ min-height: 110px; }
.field input:focus, .field textarea:focus{
  border-color: var(--fg);
  outline: none;
}
.field input::placeholder, .field textarea::placeholder{ color: var(--fg-faint); }
.form-footer{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-note{ font-family: var(--mono); font-size: 11.5px; color: var(--fg-faint); }
.form-status{ font-family: var(--mono); font-size: 12.5px; min-height: 18px; }
.form-status.ok{ color: var(--fg); }
.form-status.err{ color: var(--fg-dim); }

.contact-alt{
  margin-top: 28px;
  display:flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-dim);
}
.contact-alt a{ border-bottom: 1px solid var(--fg-faint); padding-bottom: 1px; }
.contact-alt a:hover{ color: var(--fg); border-color: var(--fg); }

footer{
  padding: 40px 0;
  display:flex;
  justify-content: space-between;
  align-items:center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--fg-faint);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px){
  .about-grid{ grid-template-columns:1fr; }
  .log-entry{ grid-template-columns:1fr; gap:8px; }
  .hero-grid{ grid-template-columns:1fr; gap:40px; }
  .hero-photo{ justify-self:start; max-width:300px; }
  .hero-photo-frame{ width:240px; height:240px; }
  nav.modules{ display:none; }
  .nav-toggle{ display:inline-block; }
  .top-contact-btn{ margin-left:auto; margin-right:10px; }
}
@media (max-width: 560px){
  .wrap{ padding: 0 20px; }
  section{ padding: 64px 0; }
  .hero{ padding: 64px 0 56px; }
}

/* HOME SHOWCASE — black background, centered non-circular hero */
.hero-showcase{background:#000;color:#f4f3ef;padding:42px 0 0;border-bottom:1px solid #202020;overflow:hidden}
.hero-showcase .wrap{position:relative;max-width:1180px;padding:0 32px;text-align:center}
.hero-showcase .hero-label{justify-content:center;color:#8c8c88;margin:0 0 14px}
.hero-showcase .hero-label::before{background:#3b3b3b}
.hero-decor{position:absolute;width:7px;height:7px;background:#f4f3ef;left:110px;top:105px}
.showcase-photo{position:relative;width:min(900px,92vw);height:400px;margin:0 auto -18px;display:flex;justify-content:center;align-items:flex-start}
/* .showcase-photo{position:relative;width:min(900px,92vw);height:570px;margin:0 auto -18px;display:flex;justify-content:center;align-items:flex-start} */
.showcase-glow{position:absolute;width:720px;height:500px;top:25px;left:50%;transform:translateX(-50%);background:radial-gradient(circle at 38% 44%,rgba(255,174,0,.28),transparent 35%),radial-gradient(circle at 65% 46%,rgba(255,0,170,.28),transparent 36%),radial-gradient(circle at 52% 58%,rgba(92,40,255,.22),transparent 48%);filter:blur(28px);opacity:.9}
.showcase-photo-frame{position:relative;z-index:1;width:min(760px,86vw);height:570px;margin-top:0;border-radius:0;overflow:hidden;background:#000;border:none;box-shadow:none}
/* .showcase-photo-frame{position:relative;z-index:1;width:min(760px,86vw);height:550px;margin-top:0;border-radius:0;overflow:hidden;background:#000;border:none;box-shadow:none} */
.showcase-photo-frame::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 62%,rgba(0,0,0,.25) 78%,#000 100%);pointer-events:none}
.showcase-photo-frame img{width:100%;height:100%;object-fit:cover;object-position:center top;border-radius:0}
.showcase-content{position:relative;z-index:2}
.hero-showcase h1{max-width:none;margin:0 auto;color:#f4f3ef;font-family:var(--display);font-size:clamp(2.5rem,5.2vw,4.7rem);line-height:1;letter-spacing:-.045em}
.hero-showcase h1 span{display:inline}
.showcase-roles{display:grid;grid-template-columns:repeat(3,1fr);margin:26px auto 0;border-top:1px solid #252525;border-bottom:1px solid #252525;max-width:900px}
.showcase-roles div{padding:20px 12px;font-family:var(--display);font-size:18px;font-weight:600;color:#f4f3ef;border-right:1px dotted #303030}
.showcase-roles div:last-child{border-right:none}
.showcase-summary{max-width:760px;margin:0 auto;padding:24px 20px 28px;color:#8c8c88;font-size:17px;line-height:1.5}
.showcase-actions{justify-content:center;padding-bottom:58px;margin-top:0!important}
.hero-showcase .btn-primary{background:#fff;color:#000;border-color:#fff}
.hero-showcase .btn-primary:hover{background:transparent;color:#fff}
.hero-showcase .btn-ghost{color:#f4f3ef;border-color:#333}
.hero-showcase .btn-ghost:hover{border-color:#fff}
@media(max-width:860px){.hero-showcase{padding-top:24px}.hero-showcase .wrap{padding:0 20px}.hero-decor{left:35px;top:80px}.showcase-photo{height:450px;width:100%}.showcase-glow{width:520px;height:390px}.showcase-photo-frame{width:min(650px,94vw);height:450px}.hero-showcase h1{font-size:clamp(2.25rem,7vw,3.6rem)}.showcase-roles div{font-size:15px;padding:17px 8px}}
/* @media(max-width:860px){.hero-showcase{padding-top:24px}.hero-showcase .wrap{padding:0 20px}.hero-decor{left:35px;top:80px}.showcase-photo{height:450px;width:100%}.showcase-glow{width:520px;height:390px}.showcase-photo-frame{width:min(650px,94vw);height:450px}.hero-showcase h1{font-size:clamp(2.25rem,7vw,3.6rem)}.showcase-roles div{font-size:15px;padding:17px 8px}} */
@media(max-width:560px){.hero-showcase{padding-top:14px}.hero-decor{display:none}.showcase-photo{width:100%;height:330px;margin-bottom:0}.showcase-glow{width:330px;height:280px;top:20px}.showcase-photo-frame{width:100%;height:330px}.hero-showcase h1{font-size:2.35rem;line-height:1.02}.hero-showcase h1 span{display:block;margin-top:5px}.showcase-roles{grid-template-columns:1fr;margin-top:20px}.showcase-roles div{border-right:none;border-bottom:1px dotted #303030;padding:13px 8px}.showcase-roles div:last-child{border-bottom:none}.showcase-summary{font-size:15px;padding:20px 4px 24px}.showcase-actions{padding-bottom:42px}}

.download-cv {
  /* color: var(--fg) !important; */
  /* border: 1px solid var(--fg-faint) !important; */
  /* padding: 7px 12px !important; */
  transition: all .18s ease;
}

.download-cv:hover {
  color: var(--fg) !important;
}

/* =========================================================
   HOME HERO — CENTERED SHOWCASE / NO ROUND FRAME
   ========================================================= */

.hero-showcase {
  background: #000;
  color: var(--fg);
  padding: 42px 0 58px;
  border-bottom: 1px solid #202020;
  overflow: hidden;
}

.hero-showcase .wrap {
  max-width: 1180px;
  padding: 0 32px;
  text-align: center;
}

.home-hero-grid {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.showcase-photo {
  position: relative;
  width: min(760px, 92vw);
  height: 430px;
  margin: 0 auto -18px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.showcase-glow {
  position: absolute;
  width: 680px;
  height: 470px;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 38% 44%, rgba(255,174,0,.28), transparent 35%),
    radial-gradient(circle at 65% 46%, rgba(255,0,170,.28), transparent 36%),
    radial-gradient(circle at 52% 58%, rgba(92,40,255,.22), transparent 48%);
  filter: blur(28px);
  opacity: .9;
  pointer-events: none;
}

.showcase-photo-frame {
  position: relative;
  z-index: 1;
  width: min(650px, 88vw);
  height: 500px;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: #000;
  border: none;
  box-shadow: none;
}

.showcase-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      transparent 55%,
      rgba(0,0,0,.10) 70%,
      rgba(0,0,0,.55) 88%,
      #000 100%);
  pointer-events: none;
}

.showcase-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
}

.showcase-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.hero-showcase .hero-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin: 0 0 18px;
}

.hero-showcase .hero-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: #3b3b3b;
  margin-right: 10px;
}

.hero-showcase h1 {
  max-width: 100%;
  margin: 0 auto;
  color: var(--fg);
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.hero-showcase h1 span {
  display: inline;
  color: var(--fg);
}

.showcase-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(720px, 100%);
  margin: 28px auto 0;
  border-top: 1px solid #252525;
  border-bottom: 1px solid #252525;
}

.showcase-roles div {
  padding: 15px 12px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  border-right: 1px dotted #303030;
}

.showcase-roles div:last-child {
  border-right: none;
}

.showcase-summary {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 12px 0;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.55;
}

.showcase-actions {
  justify-content: center;
  padding: 26px 0 0;
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  .hero-showcase {
    padding-top: 28px;
  }

  .home-hero-grid {
    min-height: auto;
  }

  .showcase-photo {
    width: 100%;
    height: 400px;
    margin-bottom: -12px;
  }

  .showcase-photo-frame {
    width: min(600px, 94vw);
    height: 440px;
  }

  .showcase-glow {
    width: 560px;
    height: 400px;
  }

  .hero-showcase h1 {
    font-size: clamp(2.5rem, 7vw, 4rem);
  }
}

@media (max-width: 560px) {
  .hero-showcase {
    padding: 18px 0 48px;
  }

  .hero-showcase .wrap {
    padding: 0 18px;
  }

  .showcase-photo {
    height: 330px;
    margin-bottom: -4px;
  }

  .showcase-photo-frame {
    width: 100%;
    height: 350px;
  }

  .showcase-glow {
    width: 360px;
    height: 290px;
    top: 15px;
  }

  .hero-showcase h1 {
    font-size: 2.35rem;
    line-height: 1.02;
  }

  .hero-showcase h1 span {
    display: block;
    margin-top: 5px;
  }

  .showcase-roles {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .showcase-roles div {
    border-right: none;
    border-bottom: 1px dotted #303030;
    padding: 12px 8px;
    font-size: 15px;
  }

  .showcase-roles div:last-child {
    border-bottom: none;
  }

  .showcase-summary {
    font-size: 14px;
    padding: 18px 4px 0;
  }

  .showcase-actions {
    padding-top: 22px;
    flex-direction: column;
    align-items: stretch;
  }

  .showcase-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   MOBILE NAVIGATION — CSS controlled instead of JS inline styles
   ========================================================= */
@media (max-width: 860px) {
  .topbar-inner {
    position: relative;
  }

  nav.modules.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    z-index: 60;
    min-width: 190px;
    padding: 14px 18px;
    gap: 12px;
    background: #131313;
    border: 1px solid var(--border);
    box-shadow: 0 18px 45px rgba(0,0,0,.35);
  }

  nav.modules.open a {
    padding: 8px 0;
  }
}

@media (min-width: 861px) {
  nav.modules {
    display: flex !important;
    position: static !important;
  }
}





/* =========================================================
   SKILLS — REFERENCE LOGO CARD LAYOUT
   ========================================================= */

.skills-section {
  background: #000;
  color: #fff;
  padding-top: 78px;
  padding-bottom: 90px;
}

.skills-heading {
  align-items: flex-end;
  margin-bottom: 42px;
}

.skills-intro {
  max-width: 760px;
  margin-top: 10px;
  color: #9b9b9b;
  font-size: 15px;
  line-height: 1.6;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(105px, 1fr));
  gap: 20px;
  justify-content: center;
}

/* Center the final five cards exactly like the reference layout. */
.skill-card:nth-child(8) {
  grid-column: 2;
}

.skill-card {
  position: relative;
  height: 178px;
  padding: 20px 10px 0;
  background: linear-gradient(145deg, #211a43 0%, #18152f 100%);
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 18px 38px rgba(0,0,0,.35);
}

.skill-icon {
  height: 86px;
  display: grid;
  place-items: center;
  font-size: 62px;
  line-height: 1;
}

.skill-icon i {
  font-size: 60px;
}

.skill-icon .devicon-python-plain.colored {
  color: #3776ab;
}

.skill-icon .devicon-javascript-plain.colored {
  color: #f7df1e;
}

.skill-icon .devicon-mysql-plain.colored {
  color: #00758f;
}

.skill-icon .devicon-git-plain.colored {
  color: #f05032;
}

.custom-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1;
}

.frappe-mark {
  gap: 4px;
  color: #39bdf8;
  font-family: var(--mono);
  font-size: 26px;
}

.frappe-mark b {
  color: #f6c343;
  font-size: 39px;
  font-weight: 400;
}

.frappe-mark span {
  padding: 8px 5px;
  border-radius: 50%;
  background: #39a852;
  color: #07130a;
  font-size: 10px;
  font-weight: 800;
}

.erpnext-mark {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: #f05a35;
  color: #fff;
  font-size: 38px;
  box-shadow: 7px 7px 0 rgba(244,196,61,.9);
}

.jinja-mark {
  font-family: var(--mono);
  font-size: 62px;
  color: #d875ad;
  transform: skewX(-10deg);
}

.doctype-mark {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: #6c4fb3;
  color: #fff;
  font-size: 38px;
}

.workflow-mark {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #2c9acb;
  color: #fff;
  font-size: 42px;
}

.rest-mark {
  color: #47c66b;
  font-family: var(--mono);
  font-size: 31px;
}

.server-mark {
  width: 62px;
  height: 62px;
  border-radius: 13px;
  background: #f0c832;
  color: #151515;
  font-size: 39px;
}

.print-mark {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  background: #e85d45;
  color: #fff;
  font-size: 38px;
}

.skill-card h3 {
  min-height: 22px;
  margin: 4px 0 0;
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.skill-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  height: 16px;
  background: #f4f4f4;
  overflow: hidden;
}

.skill-progress span {
  display: block;
  height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.18) 0,
      rgba(255,255,255,.18) 7px,
      transparent 7px,
      transparent 14px
    ),
    linear-gradient(90deg, #ff4f2f, #ff6948);
}

.skill-card:nth-child(2n) .skill-progress span {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.18) 0,
      rgba(255,255,255,.18) 7px,
      transparent 7px,
      transparent 14px
    ),
    linear-gradient(90deg, #176df5, #3d91ff);
}

.skill-card:nth-child(3n) .skill-progress span {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.18) 0,
      rgba(255,255,255,.18) 7px,
      transparent 7px,
      transparent 14px
    ),
    linear-gradient(90deg, #e5c52c, #f4dd4b);
}

.skill-card:nth-child(4n) .skill-progress span {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.18) 0,
      rgba(255,255,255,.18) 7px,
      transparent 7px,
      transparent 14px
    ),
    linear-gradient(90deg, #7651ad, #a36ed6);
}

.skill-card:nth-child(5n) .skill-progress span {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.18) 0,
      rgba(255,255,255,.18) 7px,
      transparent 7px,
      transparent 14px
    ),
    linear-gradient(90deg, #ca5c9b, #e87ab7);
}

.skill-percent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* Tablet */
@media (max-width: 1050px) {
  .skills-grid {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }

  .skill-card:nth-child(8) {
    grid-column: auto;
  }
}

/* Mobile */
@media (max-width: 650px) {
  .skills-section {
    padding-top: 60px;
    padding-bottom: 65px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 13px;
  }

  .skill-card {
    height: 172px;
  }

  .skill-card h3 {
    font-size: 12px;
  }

  .skills-intro {
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .skill-card {
    height: 165px;
  }

  .skill-icon {
    height: 78px;
  }

  .skill-icon i {
    font-size: 52px;
  }
}



/* ================================
   SKILLS
================================ */

.tag-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.tag {
  min-height: 150px;
  padding: 20px 15px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;

  background: #0a0a0a;
  border: 1px solid #292929;
  border-radius: 8px;

  color: #ffffff;
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;

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

.tag:hover {
  transform: translateY(-4px);
  background: #111111;
  border-color: #555555;
}

/* Logo size */
.skill_logo {
  width: 65px;
  height: 65px;

  object-fit: contain;
  object-position: center;

  display: block;
}

/* Make JPG logos look clean */
.tag img[src$=".jpg"] {
  border-radius: 8px;
}

/* ================================
   TABLET
================================ */

@media (max-width: 900px) {
  .tag-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================
   MOBILE
================================ */

@media (max-width: 700px) {
  .tag-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tag {
    min-height: 140px;
    padding: 16px 10px;
    font-size: 12px;
  }

  .skill_logo {
    width: 55px;
    height: 55px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .tag-grid {
    grid-template-columns: 1fr 1fr;
  }

  .skill_logo {
    width: 50px;
    height: 50px;
  }
}

/* Education section */
.education-list {
  margin-top: 30px;
}

.education-item {
  position: relative;
  padding: 22px 80px 22px 0;
  border-bottom: 1px solid #292929;
}

.education-item:first-child {
  border-top: 1px solid #292929;
}

.education-type {
  display: block;
  margin-bottom: 8px;
  color: #777;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
}

.education-content h3 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: 16px;
}

.education-content p {
  margin: 6px 0 0;
  color: #999;
  font-size: 13px;
}

.education-year {
  position: absolute;
  right: 0;
  top: 24px;
  color: #aaa;
  font-family: var(--mono);
  font-size: 13px;
}

@media (max-width: 600px) {
  .education-item {
    padding-right: 0;
  }

  .education-year {
    position: static;
    display: block;
    margin-top: 8px;
  }
}

.first_space{
  padding-top: 0px;
}

/* Work Experience section */

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

.experience-list {
  margin-top: 30px;
}

.experience-item {
  padding: 25px 0;
  border-top: 1px solid #292929;
}

.experience-item:last-child {
  border-bottom: 1px solid #292929;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.experience-header h3 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: 17px;
}

.company-location {
  margin: 5px 0 0;
  color: #888;
  font-family: var(--mono);
  font-size: 12px;
  font-style: italic;
}

.experience-date {
  flex-shrink: 0;
  color: #aaa;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.experience-item ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.experience-item li {
  margin-bottom: 7px;
  color: #aaa;
  font-size: 13px;
  line-height: 1.55;
}

.experience-item li::marker {
  color: #fff;
}

/* Mobile */
@media (max-width: 600px) {

  .experience-header {
    flex-direction: column;
    gap: 8px;
  }

  .experience-date {
    order: 2;
  }

  .experience-item {
    padding: 20px 0;
  }

  .experience-header h3 {
    font-size: 15px;
  }

  .experience-item li {
    font-size: 12px;
    line-height: 1.5;
  }
}


/* responce message colour */
.form-status {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}

.form-status.ok {
  color: #22c55e; /* Green */
}

.form-status.err {
  color: #ef4444; /* Red */
}