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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* TOKENS */
:root {
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 100px;

  --bg: #f7f8fa;
  --bg-elevated: #ffffff;

  --text-main: #0f172a;
  --text-muted: #64748b;

  --accent: #6d4aff;
  --accent-dark: #5b36ff;

  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.06);
}

/* DARK MODE */
:root[data-theme="dark"] {
  --bg: #0f172a;
  --bg-elevated: #1e293b;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #8a75ff;
  --accent-dark: #6d57ff;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* LAYOUT */
.shell {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.section {
  padding: 120px 0;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

:root[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
}

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

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6d4aff, #4834e0);
  display: grid;
  place-content: center;
  font-weight: 600;
  color: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* NAV */
.nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: color 0.2s;
}

.nav-list a:hover {
  color: var(--accent);
}

/* DARK MODE TOGGLE */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: grid;
  place-content: center;
  cursor: pointer;
  margin-right: 18px;
}

/* HERO */
.hero-inner {
  display: grid;
  gap: 60px;
  align-items: start;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 700px;
}

.eyebrow {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.55;
  margin: 22px 0 28px;
}

/* BUTTONS */
.button {
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.button.primary {
  background: linear-gradient(135deg, #6d4aff, #4a32e6);
  color: white;
  box-shadow: 0 6px 20px rgba(109, 74, 255, 0.35);
  transition: transform 0.2s;
}

.button.primary:hover {
  transform: translateY(-2px);
}

.button.ghost {
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

/* HERO META */
.hero-meta {
  display: flex;
  gap: 22px;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
/* HIGHLIGHT PANEL (Selected focus box) */
.hero-panel {
  background: var(--bg-elevated);
  padding: 26px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(109, 74, 255, 0.25);
  box-shadow: var(--shadow-soft);
}

.hero-panel-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-tags li {
  background: rgba(109, 74, 255, 0.08);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-main);
}

.hero-panel-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* SECTION HEADINGS */
.section-header p.eyebrow {
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.55;
}

/* WORK GRID */
.work-grid {
  margin-top: 50px;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* PROJECT CARD */
.project-card {
  background: var(--bg-elevated);
  padding: 26px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.project-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.55;
}

.project-details {
  margin-bottom: 16px;
}

.project-details dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-details dd {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* INLINE LINK (View case study) */
.inline-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

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

.inline-link::after {
  content: " ↗";
  font-size: 0.76rem;
}

/* CASE STUDY OVERLAY */
.case-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

:root[data-theme="dark"] .case-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.case-overlay[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.case-overlay-panel {
  background: var(--bg-elevated);
  width: min(720px, 100%);
  border-radius: var(--radius-xl);
  padding: 40px 40px;
  box-shadow: var(--shadow-soft);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.case-overlay-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 24px;
  color: var(--text-main);
}

.case-overlay-header h2 {
  font-size: 1.7rem;
  margin: 10px 0 14px;
}

.case-overlay-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.case-grid {
  display: grid;
  gap: 22px;
  margin-top: 10px;
}

.case-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.case-grid p,
.case-grid li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.case-grid ul {
  padding-left: 18px;
  list-style: disc;
}
/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  align-items: start;
}

.about-main h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 18px;
}

.about-main p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ABOUT HIGHLIGHTS */
.about-highlights {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.about-highlights h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.about-highlights ul {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* INFO CARD */
.info-card {
  background: var(--bg-elevated);
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-soft);
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.info-card dl div {
  margin-bottom: 14px;
}

.info-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}

.info-card dd {
  font-size: 0.95rem;
  color: var(--text-main);
}

.info-card a.inline-link {
  display: inline-block;
  margin-top: 12px;
}

/* CONTACT SECTION */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
}

.contact-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 16px;
}

.contact-copy p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.contact-meta {
  list-style: none;
  margin-top: 10px;
}

.contact-meta li {
  margin-bottom: 16px;
}

.contact-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.contact-meta a {
  text-decoration: none;
  color: var(--accent-dark);
  font-size: 0.98rem;
}

.contact-meta a:hover {
  text-decoration: underline;
}

/* CONTACT FORM */
.contact-form {
  background: var(--bg-elevated);
  padding: 28px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-soft);
}

.field {
  margin-bottom: 18px;
}

.field label {
  font-size: 0.85rem;
  margin-bottom: 6px;
  display: block;
}

input,
textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  color: var(--text-main);
}

textarea {
  resize: vertical;
}

/* FULL-WIDTH BUTTON */
.button.full-width {
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

/* FOOTER */
.site-footer {
  margin-top: 120px;
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-meta {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.reveal--in {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE NAV (Collapsed menu) */
.nav-toggle {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav-list {
    position: absolute;
    top: 70px;
    right: 20px;
    background: var(--bg-elevated);
    padding: 20px 26px;
    border-radius: var(--radius-lg);
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--shadow-soft);
    display: none;
  }

  .nav-list[data-open="true"] {
    display: flex;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-toggle-line {
    width: 26px;
    height: 2px;
    background: var(--text-main);
    margin: 5px 0;
    display: block;
  }

  .hero-inner {
    gap: 40px;
  }

  h1 {
    font-size: 2.4rem;
  }
}
