:root {
  --bg: #05060b;
  --panel: #10131d;
  --panel-soft: #141a2a;
  --text: #e6ebff;
  --muted: #a1accf;
  --accent: #ff8a2b;
  --accent-2: #ffbe73;
  --line: #232c45;
  --radius: 18px;
  --shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 15% -10%, rgba(255, 138, 43, 0.22), transparent 60%),
    radial-gradient(700px 500px at 90% 10%, rgba(120, 154, 255, 0.14), transparent 50%),
    var(--bg);
  font-family: "Inter", "Segoe UI", "Arial", sans-serif;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.04) 0.5px,
      transparent 0.5px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0.5px, transparent 0.5px);
  background-size: 4px 4px, 4px 4px;
  mix-blend-mode: soft-light;
}

.content-wrap {
  width: min(1100px, 94vw);
  margin: 0 auto;
}

.site-header {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2.5rem;
}

.eyebrow {
  display: inline-flex;
  border: 1px solid var(--line);
  color: var(--accent-2);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.06;
}

#hero-description {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-note {
  margin-top: 1.1rem;
  color: #ffd7ab;
  font-size: 0.95rem;
}

.portfolio-panel {
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.8), rgba(16, 19, 29, 0.6));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
}

.panel-header h2 {
  margin: 0;
  font-size: 1.45rem;
}

.panel-header p {
  margin: 0.4rem 0 1rem;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.tab-button {
  border: 1px solid var(--line);
  background: #0f1526;
  color: #e4ebff;
  border-radius: 999px;
  padding: 0.58rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-button:hover {
  border-color: var(--accent);
}

.tab-button.is-active {
  border-color: transparent;
  background: linear-gradient(90deg, rgba(255, 138, 43, 0.95), rgba(255, 190, 115, 0.85));
  color: #130f07;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.95rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  overflow: hidden;
}

.project-media {
  height: 140px;
  background: linear-gradient(120deg, #161f34, #0f1524);
  position: relative;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 138, 43, 0.25), rgba(255, 190, 115, 0));
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 5px;
}

.project-card h3 {
  margin: 0.95rem 1rem 0.3rem;
  font-size: 1.07rem;
}

.project-card p {
  margin: 0 1rem 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.project-card .meta {
  margin: auto 1rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.project-link:hover {
  text-decoration: underline;
}

.project-year {
  color: #a8b5d1;
  font-size: 0.87rem;
}

.contact {
  margin: 1.5rem 0 3rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.9rem;
}

.contact h2 {
  margin: 0;
}

.contact p {
  color: var(--muted);
  line-height: 1.6;
}

#contact-link {
  display: inline-block;
  margin-top: 0.2rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
}

@media (max-width: 640px) {
  .portfolio-panel {
    padding: 1rem;
  }
}

