:root {
  --black: #0d0d0d;
  --gray-700: #4b4b4b;
  --gray-500: #8a8a8a;
  --gray-300: #c9c9c9;
  --gray-100: #eeeeee;
  --white: #ffffff;
  --bg: #f5f5f5;
  --accent: #d0c8ff;
  --accent-ink: #0d0d0d;
  --accent-tint: #e3e0f5;
  --max: 1800px;
  --pad: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--black);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad) 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}

.logo-mark {
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  color: var(--black);
  flex-shrink: 0;
}

.logo-first {
  font-weight: 700;
}

.logo-last {
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.nav-links a {
  color: var(--black);
  transition: opacity 0.15s ease;
}

.nav-links a:hover { opacity: 0.55; }

.nav-links .cv-link {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 8px 18px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-links .cv-link:hover {
  background: #c2b6ff;
  opacity: 1;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--black);
  cursor: pointer;
  padding: 8px 4px;
}

/* Hero */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--pad) 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 48px;
  row-gap: 40px;
}

.hero-text {
  grid-column: 1;
  grid-row: 1;
  max-width: 760px;
}

.hero-photo {
  grid-column: 2;
  grid-row: 1;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-align: center;
  flex-shrink: 0;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  color: var(--gray-500);
  font-size: 15px;
}

.hero-text .eyebrow {
  display: block;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

.accent { color: var(--black); border-bottom: 2px solid var(--accent); }

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cta-button:hover {
  background: #c2b6ff;
  transform: translateY(-1px);
}

.brands {
  grid-column: 1 / -1;
  grid-row: 2;
  padding-top: 40px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: baseline;
  gap: 32px;
  flex-wrap: wrap;
}

.brands-label {
  color: var(--gray-500);
  font-size: 14px;
  white-space: nowrap;
}

.brands-row {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.brands-row a {
  display: flex;
  align-items: center;
}

.brands-row img {
  height: 24px;
  width: auto;
  color: var(--gray-700);
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.brands-row a:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* Sections */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--pad);
  border-top: 1px solid var(--gray-100);
}

.section-head {
  margin-bottom: 32px;
}

.text-link {
  color: var(--gray-500);
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.text-link:hover {
  color: var(--black);
  border-color: var(--gray-300);
}

/* Work grid */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: var(--tile);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.work-card:hover .work-thumb {
  transform: translateY(-4px);
  opacity: 0.92;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 15px;
}

.work-title { font-weight: 500; }
.work-tag { color: var(--gray-500); font-size: 14px; }

.work-card--soon {
  cursor: default;
}

.work-card--soon .work-thumb {
  opacity: 0.6;
}

.work-card--soon:hover .work-thumb {
  transform: none;
  opacity: 0.6;
}

.work-card--soon .work-title {
  color: var(--gray-500);
}

.work-soon-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Experience */

.exp-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--gray-100);
}

.exp-row:last-of-type { padding-bottom: 0; }

.exp-when {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-dates {
  color: var(--gray-500);
  font-size: 14px;
}

.exp-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}

.exp-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
}

.exp-type {
  color: var(--gray-500);
  font-weight: 400;
  font-size: 14px;
}

.exp-link {
  border-bottom: 2px solid var(--accent);
  transition: opacity 0.15s ease;
}

.exp-link:hover {
  opacity: 0.6;
}

.exp-body p {
  margin: 0;
  max-width: 640px;
  color: var(--gray-700);
  line-height: 1.65;
  font-size: 16px;
}

.exp-earlier {
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
}

.exp-earlier strong {
  color: var(--gray-700);
  font-weight: 500;
}

/* Achievements */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.stat-label {
  color: var(--gray-500);
  font-size: 14px;
}

.strength-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--gray-100);
}

.strength-row:last-child { padding-bottom: 0; }

.strength-index {
  color: var(--gray-500);
  font-size: 15px;
}

.strength-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
}

.strength-body p {
  margin: 0;
  max-width: 620px;
  color: var(--gray-700);
  line-height: 1.6;
  font-size: 16px;
}

/* Contact page form */

.contact-page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--pad) 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
}

.contact-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.to-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--gray-500);
}

.to-chip {
  display: inline-block;
  background: var(--accent-tint);
  color: var(--black);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 15px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 15px;
  color: var(--gray-700);
}

.form-field input,
.form-field textarea {
  border: none;
  border-bottom: 1px solid var(--gray-300);
  background: transparent;
  font-family: inherit;
  font-size: 18px;
  color: var(--black);
  padding: 4px 0 10px;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--gray-300);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--black);
}

.form-status {
  font-size: 14px;
  color: var(--gray-500);
  min-height: 18px;
}

/* Title marquee (page-name ticker under header) */

.title-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0 32px;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.title-marquee .marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  animation: marquee-left 28s linear infinite;
}

.title-marquee .marquee-track span {
  font-size: clamp(40px, 9vw, 114px);
  font-weight: 400;
  color: var(--black);
}

.title-marquee .marquee-track .mark {
  color: var(--accent);
}

/* Outro marquee ("Let's work together" band above the footer panel) */

.outro-marquee {
  overflow: hidden;
  white-space: nowrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 6px 0;
}

.outro-marquee .marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  animation: marquee-left 40s linear infinite;
}

.outro-marquee.reverse .marquee-track {
  animation-name: marquee-right;
}

.outro-marquee .marquee-track span {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 400;
  color: var(--black);
}

.outro-marquee .marquee-track .mark {
  color: var(--accent);
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Footer */

.footer-panel {
  position: relative;
  background: var(--black);
  border-radius: 24px;
  max-width: var(--max);
  margin: 24px auto 24px;
  padding: 96px var(--pad) 28px;
  color: var(--bg);
}

.back-to-top {
  position: absolute;
  top: -22px;
  left: 32px;
  width: 44px;
  height: 100px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.15s ease;
}

.back-to-top:hover { transform: translateY(-3px); }

.footer-socials {
  position: absolute;
  top: -18px;
  right: 32px;
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.footer-socials a:hover { transform: translateY(-3px); }

.footer-socials svg { width: 18px; height: 18px; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
}

.footer-label {
  font-size: 14px;
  color: rgba(245, 245, 245, 0.6);
}

.footer-email {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--bg);
}

.footer-asterisk {
  position: absolute;
  right: 40px;
  bottom: 16px;
  font-size: 150px;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 245, 245, 0.14);
  position: relative;
}

.footer-links,
.footer-domains {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-links a { color: var(--bg); transition: opacity 0.15s ease; }
.footer-links a:hover { opacity: 0.6; }
.footer-domains span { color: rgba(245, 245, 245, 0.6); }

.footer-copyright {
  font-size: 13px;
  color: rgba(245, 245, 245, 0.5);
}

/* Scroll reveal */

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    padding: 8px var(--pad);
    z-index: 20;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-links .cv-link {
    background: none;
    color: var(--black);
    padding: 14px 0;
    border-radius: 0;
  }

  .nav-links .cv-link:hover {
    background: none;
    opacity: 0.55;
    transform: none;
  }

  .menu-toggle { display: flex; }

  .site-header { position: relative; }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-text {
    grid-row: 2;
  }

  .hero-photo {
    grid-column: 1;
    grid-row: 1;
    width: 112px;
    height: 112px;
    margin-bottom: 4px;
  }

  .brands { grid-row: 3; }

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

  .stats-row { grid-template-columns: 1fr 1fr; }

  .strength-row { grid-template-columns: 1fr; gap: 10px; }

  .exp-row { grid-template-columns: 1fr; gap: 10px; }

  .contact-grid { grid-template-columns: 1fr; gap: 20px; }

  .footer-asterisk { font-size: 100px; right: 24px; }
}

@media (max-width: 560px) {
  :root { --pad: 20px; }

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

  .stats-row { grid-template-columns: 1fr 1fr; }

  .back-to-top { width: 36px; height: 72px; top: -16px; left: 20px; }

  .footer-socials { top: -14px; right: 20px; }
  .footer-socials a { width: 34px; height: 34px; }

  .footer-panel { padding-top: 68px; }

  .footer-asterisk { display: none; }

  .footer-bottom { margin-top: 40px; }
}
