/* ===== Design tokens — edit these to restyle the whole site ===== */
:root {
  --bg: #0a0a0a;
  --fg: #f2f0ea;
  --muted: #8a8a86;
  --accent: #e8b84b; /* swap for your brand color */
  --line: #262626;
  --font-display: "Helvetica Neue", Arial, sans-serif;
  --font-body: "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  position: relative;
}

/* subtle grain texture for a less "flat" feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Custom cursor ===== */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease);
  mix-blend-mode: difference;
}
.cursor.hovering {
  width: 44px;
  height: 44px;
  background: var(--fg);
}
@media (hover: none) {
  .cursor { display: none; }
  body { cursor: auto; }
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 5vw;
  z-index: 100;
  mix-blend-mode: difference;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 32px; }
.main-nav a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%; height: 1px;
  background: var(--fg);
  transition: width .3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--fg);
  padding: 8px 16px;
  border-radius: 999px;
}
.badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.4); }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5vw;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-copy { flex: 1; min-width: 0; }

.photo-frame {
  position: relative;
  width: clamp(160px, 20vw, 260px);
  height: clamp(200px, 26vw, 340px);
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  transition: filter .4s var(--ease);
}
.photo-frame:hover img { filter: grayscale(0) contrast(1.05); }
.photo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 800;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), #7a5a1e);
}
.photo-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
}

@media (max-width: 800px) {
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; }
  .photo-frame { width: 140px; height: 180px; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -2px;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .reveal {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: rise .9s var(--ease) forwards;
}
.hero-title .line:nth-child(1) .reveal { animation-delay: .1s; }
.hero-title .line:nth-child(2) .reveal { animation-delay: .25s; }
.hero-title .line:nth-child(3) .reveal { animation-delay: .4s; }
.hero-title .accent .reveal { color: var(--accent); }

@keyframes rise {
  to { transform: translateY(0); opacity: 1; }
}

.hero-sub {
  max-width: 480px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp .8s var(--ease) forwards;
  animation-delay: .7s;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}
.scroll-line {
  width: 1px; height: 40px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-line i {
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ===== Marquee ===== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollLeft 22s linear infinite;
}
.marquee-track span {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 20px;
}
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Section shared ===== */
section { padding: 140px 5vw; position: relative; }
.section-index {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 40px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.4;
  font-weight: 500;
}
.stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.stats li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.stats strong {
  font-size: 36px;
  color: var(--accent);
}
.stats span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* ===== Experience ===== */
.work-list { border-top: 1px solid var(--line); }
.work-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding-left .35s var(--ease), color .35s var(--ease);
}
.work-row:hover { padding-left: 20px; color: var(--accent); }
.work-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  letter-spacing: .5px;
  color: var(--muted);
}
.work-name {
  font-size: clamp(20px, 3.4vw, 34px);
  font-weight: 700;
  flex: 1;
  min-width: 220px;
}
.work-cat {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.work-result {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.work-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all .35s var(--ease);
}
.work-row:hover .work-arrow { opacity: 1; transform: translateX(0); }

/* ===== Logos strip ===== */
.logos-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.logo-box {
  background: var(--bg);
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.logo-box:hover { color: var(--fg); background: #111; }

/* ===== Contact ===== */
.contact { text-align: center; padding-bottom: 200px; }
.contact-title {
  font-size: clamp(36px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.contact-title .accent { color: var(--accent); }
.contact-email {
  display: inline-block;
  font-size: clamp(20px, 4vw, 32px);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 40px;
}
.socials { display: flex; justify-content: center; gap: 28px; }
.socials a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.socials a:hover { color: var(--fg); }

/* ===== Footer ===== */
.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 5vw;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Case studies ===== */
.case-studies { padding: 140px 5vw; }
.case-card {
border: 1px solid var(--line);
padding: 48px clamp(20px, 4vw, 56px);
max-width: 900px;
margin: 0 auto;
}
.case-head { margin-bottom: 32px; }
.case-title {
font-size: clamp(24px, 3.2vw, 36px);
font-weight: 600;
margin-bottom: 10px;
}
.case-title .case-sub {
color: var(--muted);
font-weight: 400;
}
.case-meta {
display: block;
color: var(--muted);
font-size: 13px;
letter-spacing: .3px;
}
.case-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 24px;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
padding: 32px 0;
margin: 32px 0;
}
.case-stats li { display: flex; flex-direction: column; gap: 6px; }
.case-stats strong {
font-size: clamp(22px, 2.6vw, 30px);
color: var(--accent);
}
.case-stats span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.case-highlights h4 {
font-size: 13px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--muted);
margin-bottom: 16px;
}
.case-highlights ul { display: flex; flex-direction: column; gap: 14px; }
.case-highlights li {
padding-left: 20px;
position: relative;
line-height: 1.55;
}
.case-highlights li::before {
content: "→";
position: absolute;
left: 0;
color: var(--accent);
}
.case-turnaround {
margin-top: 36px;
padding: 24px clamp(16px, 3vw, 32px);
border-left: 2px solid var(--accent);
background: #111;
}
.case-turnaround p {
color: var(--fg);
font-style: italic;
line-height: 1.6;
}
@media (max-width: 800px) {
.case-card { padding: 32px 20px; }
}

/* ===== Standalone case studies page ===== */
.back-link {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--muted);
font-size: 13px;
letter-spacing: .3px;
text-transform: uppercase;
margin-bottom: 40px;
transition: color .3s var(--ease);
}
.back-link:hover { color: var(--fg); }
.cs-page-title {
font-size: clamp(32px, 5vw, 56px);
font-weight: 600;
margin-bottom: 12px;
}
.cs-page-sub {
color: var(--muted);
max-width: 600px;
line-height: 1.6;
margin-bottom: 60px;
}

/* ===== Logo images in logo-box ===== */
.logo-box--img { padding: 24px 20px; }
.logo-img {
  max-width: 140px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .85;
  transition: opacity .3s var(--ease);
}
.logo-box--img:hover .logo-img { opacity: 1; }

/* ===== Freelance clients marquee ===== */
.freelance-clients { padding: 60px 5vw; position: relative; }
.freelance-clients .section-index { display: block; text-align: center; margin-bottom: 24px; }
.marquee-freelance { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 24px 0; }
.marquee-freelance-track { display: flex; align-items: center; width: max-content; animation: scrollLeftFreelance 34s linear infinite; }
.freelance-logo-pill { display: flex; align-items: center; justify-content: center; background: #f2f2ee; border-radius: 10px; padding: 10px 22px; margin-right: 22px; min-width: 110px; height: 52px; flex-shrink: 0; }
.freelance-logo-pill img { max-width: 96px; max-height: 34px; width: auto; height: auto; object-fit: contain; }
@keyframes scrollLeftFreelance { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.work-logo--img { padding: 6px; }
.work-logo--img img { max-width: 100%; max-height: 100%; object-fit: contain; }
