@font-face {
  font-family: 'Sentient';
  src: url('font/Fonts/WEB/fonts/Sentient-Light.woff2') format('woff2'),
       url('font/Fonts/WEB/fonts/Sentient-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --font: 'Sentient', Georgia, serif;
  --sz: 14px;
  --lh: 20px;
  --ls: -0.07px;
  --muted: rgba(0, 0, 0, 0.5);
  --card-bg: #f1f1f1;
  --border: 0.5px solid #e5e5e5;
  --r-card: 20px;
  --r-sm: 4px;
  --r-md: 12px;
  --w-col: 362px;
  --w-list: 726px;
  --w-hero: 1100px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --shadow-card:
    0 0 0 0.5px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card-hover:
    0 0 0 0.5px rgba(0, 0, 0, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.07);
  --pad-x: 20px;
}

html {
  font-family: var(--font);
  font-size: var(--sz);
  font-weight: 300;
  line-height: var(--lh);
  letter-spacing: var(--ls);
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; text-decoration-skip-ink: none; transition: opacity 150ms ease; }
img { display: block; max-width: 100%; }
p { line-height: var(--lh); text-wrap: pretty; }

/* ── Global link hover ───────────────────────── */

a:hover {
  opacity: 0.5;
  text-decoration: none;
}

/* ── Page transitions ────────────────────────── */

@keyframes pageFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageFadeOut { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  body { animation: pageFadeIn 250ms ease both; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img-wrap, .card { transition: none; }
}

/* ── Page-load stagger ───────────────────────── */

@media (prefers-reduced-motion: no-preference) {

  @keyframes loadIn {
    from { opacity: 0; translate: 0 8px; filter: blur(3px); }
    to   { opacity: 1; translate: 0 0;   filter: blur(0);   }
  }

  .load-1 { animation: loadIn 500ms var(--ease)   0ms both; }
  .load-2 { animation: loadIn 500ms var(--ease)  80ms both; }
  .load-3 { animation: loadIn 500ms var(--ease) 140ms both; }
  .load-4 { animation: loadIn 500ms var(--ease) 200ms both; }
  .load-5 { animation: loadIn 500ms var(--ease) 270ms both; }
  .load-6 { animation: loadIn 500ms var(--ease) 340ms both; }
  .load-7 { animation: loadIn 500ms var(--ease) 400ms both; }
  .load-8 { animation: loadIn 500ms var(--ease) 460ms both; }
  .load-9 { animation: loadIn 500ms var(--ease) 520ms both; }

  /* ── Scroll reveal ──────────────────────── */

  @keyframes revealUp {
    from { opacity: 0; translate: 0 12px; filter: blur(4px); }
    to   { opacity: 1; translate: 0 0;    filter: blur(0);   }
  }

  .reveal.is-visible {
    animation: revealUp 500ms var(--ease) both;
    animation-delay: var(--reveal-delay, 0ms);
  }

}

.reveal { opacity: 0; }
.reveal.is-visible { opacity: 1; }

/* ── Sidebar nav ─────────────────────────────── */

.sidebar {
  position: fixed;
  left: 20px;
  top: 220px;
  width: 84px;
  z-index: 100;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-list li a,
.nav-list li span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 4px 0;
}

.nav-muted { opacity: 0.5; }
.nav-list .nav-ul a { text-decoration: underline; }

/* About link: override global a:hover dim — animation is the hover effect */
.nav-about-link:hover { opacity: 1; }

.nav-thumb {
  width: 16px;
  height: 16px;
  border-radius: var(--r-sm);
  border: var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.logo-sm {
  position: fixed;
  left: 20px;
  top: 20px;
  width: 32px;
  height: 32px;
  z-index: 100;
}

/* ── Page layout ─────────────────────────────── */

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Logo / avatar area ──────────────────────── */

.logo-area {
  padding-top: 132px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo-star {
  width: 62px;
  height: 62px;
}

.logo-avatar {
  width: 62px;
  height: 62px;
  border-radius: var(--r-md);
  border: var(--border);
  object-fit: cover;
}

/* ── Hero ────────────────────────────────────── */

.hero {
  padding-top: 120px;
  width: min(var(--w-list), calc(100% - var(--pad-x) * 2));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-meta { max-width: var(--w-col); width: 100%; }
.hero-role { color: var(--muted); }

.hero-heading {
  width: 100%;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  text-wrap: balance;
}

.hero-exp { color: var(--muted); max-width: var(--w-col); width: 100%; }

.hero-cta {
  display: block;
  text-decoration: underline;
  transition: scale 150ms ease-out, opacity 150ms ease-out;
}

.hero-cta:hover {
  opacity: 0.5;
  text-decoration: none;
}

.hero-cta:active { scale: 0.96; }

/* ── Hero image ──────────────────────────────── */

.hero-img-wrap {
  width: min(var(--w-hero), 100%);
  aspect-ratio: 1100 / 520;
  border-radius: var(--r-card);
  background: var(--card-bg);
  border: var(--border);
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Projects list ───────────────────────────── */

.projects-section,
.services-section,
.work-section,
.testimonials-section,
.cta-section {
  margin-top: 80px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-section { padding: 0 var(--pad-x); gap: 40px; }

.services-section,
.work-section,
.testimonials-section { padding: 0 var(--pad-x); }

.projects-see {
  width: 100%;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.projects-list {
  width: min(var(--w-list), 100%);
  padding-top: 40px;
}

.proj-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 6px;
  margin: 0 -6px;
  border-top: var(--border);
  /*border-radius: var(--r-sm);*/
  transition: background-color 150ms ease;
}

.proj-name {
  width: clamp(80px, 14.5vw, 105px);
  flex-shrink: 0;
}

.proj-cat {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.proj-year {
  width: clamp(60px, 14.5vw, 105px);
  flex-shrink: 0;
  text-align: right;
}

.projects-more { color: var(--muted); text-align: center; }

/* ── Section heading ─────────────────────────── */

.section-title {
  font-size: 32px;
  font-weight: 300;
  line-height: 40px;
  letter-spacing: -0.64px;
  text-align: center;
  text-wrap: balance;
  max-width: var(--w-col);
  width: min(var(--w-col), calc(100% - var(--pad-x) * 2));
}

.section-sub {
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
  text-wrap: pretty;
  max-width: var(--w-col);
  width: min(var(--w-col), calc(100% - var(--pad-x) * 2));
}

/* ── Services ────────────────────────────────── */

.service-cards {
  margin-top: 40px;
  width: min(var(--w-col), 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--r-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 200ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.svc-head { display: flex; flex-direction: column; gap: 8px; }
.svc-meta { display: flex; gap: 8px; }
.svc-meta-item { flex: 1; min-width: 0; }
.svc-meta-label { color: var(--muted); }
.svc-desc { color: var(--muted); }

.services-note {
  margin-top: 40px;
  text-align: center;
  color: rgba(0, 0, 0, 0.8);
  width: min(var(--w-col), calc(100% - var(--pad-x) * 2));
  text-wrap: pretty;
}

.services-note a,
.services-note .cal-button { text-decoration: underline; }

/* ── Cal.com popup buttons ───────────────────── */

.cal-button,
.nav-cal-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}

.nav-cal-button {
  padding: 4px 0;
  text-decoration: underline;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .cal-button:hover     { opacity: 0.5; }
  .nav-cal-button:hover { opacity: 0.5; text-decoration: none; }
}

/* ── How I work ──────────────────────────────── */

.work-cards {
  margin-top: 40px;
  width: min(var(--w-col), 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.work-card {
  min-height: 224px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-card-title { text-wrap: balance; }
.work-card-desc  { color: var(--muted); }

/* ── Testimonials ────────────────────────────── */

.testimonial-cards {
  margin-top: 40px;
  width: min(var(--w-col), 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.t-role { color: var(--muted); }

/* ── CTA section ─────────────────────────────── */

.cta-section { padding: 40px var(--pad-x); gap: 20px; text-align: center; }

.cta-inner { width: min(var(--w-col), 100%); }

.cta-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-wrap: wrap;
}

.link-ul,
.link-ul-muted {
  text-decoration: underline;
  transition: scale 150ms ease-out, opacity 150ms ease-out;
}

.link-ul:active,
.link-ul-muted:active { scale: 0.96; }

.link-ul-muted { color: var(--muted); }

/* ── Footer ──────────────────────────────────── */

.site-footer {
  margin-top: 60px;
  width: 100%;
  padding: 0 var(--pad-x);
}

.footer-card {
  max-width: var(--w-hero);
  margin: 12px auto 0;
  border-top: var(--border);
  border-left: var(--border);
  border-right: var(--border);
  border-radius: var(--r-card) var(--r-card) 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-inner {
  width: min(var(--w-col), calc(100% - 2 * var(--pad-x)));
  padding: 60px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 62px;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  text-decoration: underline;
  padding: 6px 0;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-time-wrap {
  display: flex;
  gap: 4px;
  align-items: center;
}

.footer-tz   { color: var(--muted); text-transform: uppercase; }
.footer-time {
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* ── About page bio ──────────────────────────── */

.about-bio {
  margin-top: 40px;
  width: min(var(--w-col), calc(100% - var(--pad-x) * 2));
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-sig {
  margin-top: 40px;
  width: 156px;
  height: 72px;
}

.about-name {
  margin-top: 20px;
  text-align: center;
}

/* ── Hover effects (pointer devices only) ───── */

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: scale(1.015);
  }

  .hero-img-wrap:hover {
    transform: scale(1.02);
  }

  .proj-row:hover { background: rgba(0, 0, 0, 0.025); }
}

/* ── Tablet + mobile (≤ 1023px) ─────────────── */

@media (max-width: 1023px) {
  :root { --pad-x: 16px; }

  .logo-sm { display: none; }

  /* Nav always visible at bottom */
  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: var(--border);
    border-bottom: none;
    z-index: 100;
  }

  .nav-list {
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-list li a,
  .nav-list li span {
    padding: 4px 0;
  }

  /* Push page content above the bottom nav */
  .logo-area { padding-top: 40px; }
  .hero { padding-top: 60px; }
  .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Mobile only (≤ 640px) ───────────────────── */

@media (max-width: 640px) {
  .hero { padding-top: 40px; }

  .proj-name { width: 80px; }
  .proj-year { width: 60px; }

  .work-cards { grid-template-columns: 1fr; }

  .hero-heading { font-size: 32px; }

  .footer-meta {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

}
