/* ============================================
   TOKENS
   ============================================ */
:root {
  --paper:      #FAF9F6;
  --ink:        #16150F;
  --ink-soft:   #55524A;
  --line:       #DEDACE;
  --accent:     #2E4FFF;
  --accent-ink: #FAF9F6;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --max: 1180px;
  --gutter: clamp(24px, 5vw, 64px);
}

html.dark {
  --paper:      #15140F;
  --ink:        #F7F5EE;
  --ink-soft:   #A7A296;
  --line:       #322F27;
  --accent:     #7C93FF;
  --accent-ink: #15140F;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}
.logo .dot { color: var(--accent); }

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}
.wordmark .dot { color: var(--accent); }

.nav {
  display: flex;
  gap: 32px;
  margin-right: 15px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--ink); }

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: none;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.theme-toggle:hover {
  border-color: var(--ink);
  transform: rotate(15deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 10vw, 120px) var(--gutter) clamp(56px, 8vw, 96px);
  /*display: grid;
  grid-template-columns: minmax(160px, 200px) 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;*/
}


.hideOnMobile { display: inline-block; }
.showOnMobile { display: none; }

.hero-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 760px) {
  /*.hero {
    grid-template-columns: 1fr;
  }*/
  .nav { display: none; }
  .hideOnMobile { display: none; }
  .showOnMobile { display: inline-block; }
}

.hero-photo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  /*margin-bottom: 20px;*/
}

.hero-profile .wordmark {
  font-size: 22px;
  margin-bottom: 16px;
}

.hero-profile-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 1px;
  width: fit-content;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.profile-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0 0 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  /*margin: 0 0 16px;*/
}

.hero-text {
  position: relative;
  z-index: 2;
  /* ...your existing hero-text properties stay as-is... */
}

.hero-rocket {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  width: clamp(180px, 28vw, 380px);
  transform: translateY(-50%);
  animation: rocket-float 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes rocket-float {
  0%   { transform: translateY(-50%) translateX(0) rotate(0deg) scale(1); }
  25%  { transform: translateY(-52%) translateX(-1px) rotate(-1deg) scale(1.025); }
  50%  { transform: translateY(-49%) translateX(1px) rotate(1deg) scale(0.975); }
  75%  { transform: translateY(-51%) translateX(-2px) rotate(-2.5deg) scale(1.05); }
  100% { transform: translateY(-50%) translateX(0) rotate(0deg) scale(1); }
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 40px;
}

@media (max-width: 760px) {
    .hero-rocket {
    top: 65%;
    /*right: -5%;*/
    opacity: 0.1;
    /*animation: none;*/
    scale: 1.5;
    /*transform: translateY(-20%);*/
  }
  .hero-sub {
  max-width: 30ch;
  }
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  display: inline-block;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); }

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

/* ============================================
   CLIENT WALL — signature element
   ============================================ */
.client-wall {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  overflow: hidden;
}

.section-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: var(--max);
  margin: 0 auto 20px;
  padding: 0 var(--gutter);
}

/* Used when a section-label sits directly in a section that already
   has its own horizontal padding, so it isn't double-padded/re-centered. */
.section-label--inline {
  max-width: none;
  padding: 0;
  margin: 0 0 20px;
}

.client-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

/* Seamless-loop technique: every item (name or separator) carries the SAME
   margin-right, including the very last one. This keeps the two duplicated
   halves pixel-identical in width so translateX(-50%) lands exactly on the
   start of the second half with no jump or gap at the seam. Do not use the
   `gap` property here — gap only applies *between* items, which throws off
   the 50/50 split by half a gap-width. */
.client-list {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
  padding: 0;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5.5vw, 56px);
  letter-spacing: -0.01em;
  color: var(--line);
  white-space: nowrap;
  animation: marquee 26s linear infinite;
}

.client-marquee:hover .client-list {
  animation-play-state: paused;
}

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

.client-list li {
  margin-right: clamp(40px, 6vw, 80px);
  transition: color 0.2s ease;
  cursor: default;
}
.client-list li:hover { color: var(--ink); }

.client-list li.sep {
  font-size: 0.4em;
  color: var(--accent);
  opacity: 0.6;
  cursor: default;
}
.client-list li.sep:hover { color: var(--accent); }

/* ============================================
   WORK
   ============================================ */
.work, .about, .contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) var(--gutter);
}

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

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 20ch;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 40px;
}

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

@media (min-width: 761px) {
  .work-grid.case-open .work-card {
    display: none;
  }

  .work-grid.case-open .work-card.is-active {
    display: block;
    grid-column: 1 / -1;
  }
}

.work-grid.case-open .work-card.is-active .work-thumb {
  margin-bottom: 32px;
}

.work-grid.case-open .work-card.is-active .work-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 760px) {
  .work-grid.case-open .work-card.is-active .work-meta {
    grid-template-columns: 1fr;
  }
}

.work-tools {
  display: none;
}

.work-grid.case-open .work-card.is-active .work-tools {
  display: block;
}

.tools-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.tools-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tools-list li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.tools-list li:last-child { border-bottom: 1px solid var(--line); }

.work-thumb {
  background: rgba(119, 119, 119, 0.145);
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  transition: 0.5s ease;
}

.work-thumb:hover {
  background: rgb(46, 79, 255);
}

.thumb-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /*background: repeating-linear-gradient(
    135deg,
    #F0EDE4,
    #F0EDE4 10px,
    #E8E4D8 10px,
    #E8E4D8 20px
  );*/
  opacity: 0;
  transition: opacity 0.5s ease;
}
.thumb-slide.active {
  opacity: 1;
}

.thumb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-slide span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper);
  padding: 6px 12px;
  border-radius: 999px;
}

.thumb-next {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.thumb-next:hover {
  background: var(--ink);
  color: var(--paper);
}

.case-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.case-close:hover {
  background: var(--ink);
  color: var(--paper);
}

.work-card.is-active .case-close {
  display: flex;
}

.work-tags {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.work-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 10px;
}

.work-blurb {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 14px;
  max-width: 42ch;
}

.work-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  padding: 0 0 1px;
  display: inline-block;
  cursor: pointer;
}
.work-link:hover { border-color: var(--accent); color: var(--accent); }

.work-more {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 42ch;
  margin: 14px 0 14px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 760px) {
  .about-body { grid-template-columns: 1fr; }
  .about-media { order: -1; }
}

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 20px;
}

.about-more {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 40px;
}

.about-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  background: var(--line);
  display: block;
}

.skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-item {
  border-top: 1px solid var(--line);
}
.skills-list li:last-child .skill-item { border-bottom: 1px solid var(--line); }

.skill-item summary {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.skill-item summary::-webkit-details-marker { display: none; }

.skill-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink-soft);
  transition: transform 0.2s ease, color 0.15s ease;
}
.skill-item[open] summary::after {
  content: '+';
  transform: rotate(45deg);
  color: var(--accent);
}
.skill-item summary:hover::after { color: var(--accent); }

.skill-item p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 48ch;
  margin: 0 0 20px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-wrap {
  border-top: 1px solid var(--line);
}

.contact {
  text-align: left;
}

.contact h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: -0.01em;
  margin: 8px 0 32px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 34px);
  color: var(--accent);
  margin-bottom: 28px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.contact-email:hover { border-color: var(--accent); }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 1px;
  width: fit-content;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.contact-links a:hover { 
  color: var(--accent);
  border-color: var(--accent); 
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  text-align: left;
  padding: 32px var(--gutter) 48px;
  font-size: 13px;
  color: var(--ink-soft);
}