@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Carbon Stealth Palette */
  --bg: #090a0c;
  --card: #0f1115;
  --card-raised: #15181e;
  --line: #1c2027;
  --line-focus: #353b47;
  --steel: #252b36;
  --muted: #828794;
  --white: #f3f4f6;
  --titanium: #d1d5db;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body, button, input, select, textarea { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, textarea:focus-visible, select:focus-visible { outline: 1px solid var(--titanium); outline-offset: 3px; }

#particles { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: .4; }
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* Micro-interaction: Active Press effect */
button:active, .project-card:active, .brand-card:active, .contact-card:active {
  transform: scale(0.985) !important;
}

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 max(32px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 12, 0.94);
  backdrop-filter: blur(14px);
}

.brand { 
  font-size: 15px; 
  font-weight: 800; 
  letter-spacing: -0.04em; 
  color: #fff;
  transition: opacity 0.15s ease, letter-spacing 0.2s ease;
}
.brand:hover { 
  opacity: 0.85;
  letter-spacing: -0.02em; /* Micro-interaction: subtle font relaxation */
}

.site-header nav { display: flex; gap: 28px; margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 500; }
.site-header nav a { 
  position: relative; 
  transition: color 0.15s ease; 
}
.site-header nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1.5px;
  background: #fff;
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header nav a:hover::after, .site-header nav .active::after {
  width: 100%;
}
.site-header nav a:hover, .site-header nav .active { color: #fff; }

.section-wrap { max-width: 1160px; margin: auto; padding-right: 32px; padding-left: 32px; }
.work-section { padding-top: 55px; padding-bottom: 75px; }

.section-heading { 
  display: flex; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 34px; 
}

.kicker { display: none; }
.section-note { display: none; }

.section-heading h1, .section-heading h2 { 
  margin: 0; 
  font-size: 32px; 
  font-weight: 800; 
  letter-spacing: -0.05em; 
  color: #fff;
  text-align: center;
}

/* Two Cards Grid for SHORTS and LONGFORM */
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-card { 
  appearance: none; 
  position: relative; 
  min-width: 0; 
  padding: 0; 
  border: 0; 
  background: transparent; 
  cursor: pointer; 
  text-align: left; 
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); 
}
.project-card:hover { transform: translateY(-4px); }

.project-art { 
  position: relative; 
  display: grid; 
  height: 380px; 
  place-items: center; 
  overflow: hidden; 
  border: 1px solid var(--line); 
  border-radius: 16px; 
  background: var(--card); 
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease; 
}
.project-card:hover .project-art { 
  border-color: var(--line-focus); 
  background: var(--card-raised); 
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.art-word { 
  color: #ffffff; 
  font-size: clamp(48px, 6vw, 76px); 
  font-weight: 900; 
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #ffffff 0%, #d4d4d8 35%, #71717a 75%, #3f3f46 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .art-word {
  transform: scale(1.03); /* Micro-interaction */
}

.play { display: none !important; }

/* Featured video card (same style as brand-card but used in Previous Media) */
.featured-card { display: flex; flex-direction: column; align-items: center; }
.featured-video {
  max-width: 100% !important;
  width: 100% !important;
  aspect-ratio: 9 / 16 !important;
}

/* Short Clients Section */
.brands-section { padding-top: 55px; padding-bottom: 110px; border-top: 1px solid var(--line); }
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.brand-card { 
  display: flex; 
  min-width: 0; 
  flex-direction: column; 
  align-items: center; 
  padding: 0; 
  border: 0; 
  background: transparent; 
  cursor: pointer; 
  text-align: center; 
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); 
}
.brand-card:hover { transform: translateY(-4px); }

.brand-head { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 12px; 
  margin-bottom: 14px; 
  text-align: left; 
}
.brand-details { display: flex; min-width: 0; flex-direction: column; text-align: left; }
.brand-logo, .brand-logo-image { 
  display: grid; 
  width: 44px; 
  height: 44px; 
  flex: 0 0 auto; 
  place-items: center; 
  border: 1px solid var(--line); 
  border-radius: 12px; 
  background: var(--card); 
  object-fit: contain; 
  padding: 6px; 
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.brand-card:hover .brand-logo {
  border-color: var(--line-focus);
  transform: scale(1.05); /* Micro-interaction */
}
.brand-logo { color: #fff; font-size: 14px; font-weight: 800; }
.brand-name { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -0.03em; }
.brand-site { color: var(--muted); font-size: 11px; font-weight: 500; }

/* Direct Clean Video Item */
.brand-video { 
  position: relative; 
  width: 100%; 
  max-width: 290px; 
  aspect-ratio: 9 / 16; 
  margin: 0 auto; 
  overflow: hidden; 
  border: 1px solid var(--line); 
  border-radius: 16px; 
  background: var(--card); 
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.brand-card:hover .brand-video {
  border-color: var(--line-focus);
  background: var(--card-raised);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.brand-video > video, .brand-video > img, .brand-video > iframe { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  border: 0; 
  object-fit: cover; 
}
.brand-video > span { 
  position: absolute; 
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  padding: 3px 7px;
  text-transform: uppercase;
  pointer-events: none;
}

/* Play overlay on hover */
.brand-video::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255,255,255,0);
  background: rgba(0,0,0,0);
  transition: color 0.2s ease, background 0.2s ease;
  z-index: 1;
  pointer-events: none;
}
.brand-card:hover .brand-video::after {
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.3);
}
.brand-video.playing::after { display: none; }
.brand-video > i { display: none !important; }

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.site-footer a { color: #fff; }

/* Video Modal */
.video-modal, .form-modal {
  position: fixed;
  width: 440px;
  max-width: min(860px, calc(100% - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--steel);
  border-radius: 18px;
  background: #0b0c10;
  color: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9);
}
.video-modal::backdrop, .form-modal::backdrop { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); }
.modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #aaa;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.modal-close:hover { color: #fff; background: rgba(0, 0, 0, 0.9); transform: rotate(90deg); }
.video-player { display: grid; width: 100%; min-height: 240px; place-items: center; background: #000; }
.video-player video, .video-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.video-player[data-aspect='9/16'] { min-height: 480px; }
.video-player[data-aspect='9/16'] video, .video-player[data-aspect='9/16'] iframe { width: min(100%, 340px); aspect-ratio: 9 / 16; }
.empty-player { padding: 70px 28px; color: var(--muted); font-size: 12px; text-align: center; }
/* Form modal internals */
.modal-copy { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.form-modal { padding: 28px; max-width: 480px; }
.form-modal label { display: block; margin: 16px 0 6px; font-size: 12px; font-weight: 600; color: var(--titanium); letter-spacing: 0.03em; text-transform: uppercase; }
.form-modal select, .form-modal textarea { width: 100%; background: var(--card-raised); border: 1px solid var(--line-focus); border-radius: 8px; color: #fff; font-family: inherit; font-size: 13px; padding: 10px 12px; outline: none; transition: border-color 0.15s ease; }
.form-modal select:focus, .form-modal textarea:focus { border-color: var(--titanium); }
.form-modal textarea { resize: vertical; min-height: 90px; }
.button.full, .button-primary.full { width: 100%; margin-top: 20px; }
.modal-copy h2, .form-modal h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -0.04em; }
.modal-copy p, .form-modal p { margin: 0; color: #a1a5af; font-size: 13px; }

/* Buttons & Micro-interactions */
.button, .button-primary {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.button-primary { 
  background: #ffffff; 
  color: #000000; 
  border: 1px solid #ffffff;
}
.button-primary:hover { 
  background: #e8e8e8;
  border-color: #e8e8e8;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.12);
}
.button-primary:active {
  transform: scale(0.97) translateY(0) !important;
}
.button-primary:disabled { 
  background: #1e2128; 
  color: #555; 
  border-color: #1e2128; 
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Vouches & Contact Pages */
.page-hero { padding-top: 75px; padding-bottom: 50px; text-align: center; }
.page-hero h1 { margin: 0 0 14px; font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -0.06em; }
.page-hero > p { max-width: 480px; margin: 0 auto 24px; color: #a1a5af; font-size: 13px; }
.vouches-layout { padding-bottom: 100px; max-width: 760px; margin: auto; }
.vouch-list { border-top: 1px solid var(--line); }
.vouch { display: grid; grid-template-columns: 1fr 2fr auto; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: background-color 0.15s ease; }
.vouch:hover { background-color: rgba(255, 255, 255, 0.015); }
.vouch-user { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid var(--steel); border-radius: 50%; background: var(--card-raised); color: #fff; font-weight: 700; font-size: 12px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.vouch h2 { margin: 0 0 2px; font-size: 13px; font-weight: 600; }
.vouch small { color: #8e929c; font-size: 11px; }
.vouch-message { margin: 0; overflow-wrap: anywhere; color: #dcdfe6; font-size: 12px; line-height: 1.6; }
.vouch-rating { color: #fff; font-size: 12px; white-space: nowrap; }

.contact-grid { 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
  gap: 20px; 
  padding-bottom: 120px; 
  max-width: 820px; 
  margin: auto; 
}
.contact-card { 
  min-height: 200px; 
  padding: 24px; 
  border: 1px solid var(--line); 
  border-radius: 16px; 
  background: var(--card); 
  transition: border-color 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease; 
}
.contact-card:hover { 
  border-color: var(--line-focus); 
  transform: translateY(-4px); 
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
.contact-icon { display: grid; width: 36px; height: 36px; margin-bottom: 24px; place-items: center; border-radius: 10px; background: var(--card-raised); border: 1px solid var(--line); color: #fff; transition: transform 0.2s ease; }
.contact-card:hover .contact-icon { transform: scale(1.08); }
.contact-icon svg { width: 18px; height: 18px; display: block; }
.contact-card h2 { margin: 6px 0; font-size: 18px; font-weight: 700; letter-spacing: -0.04em; }
.contact-card p { margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.contact-card strong { font-size: 12px; }
.contact-card strong span { margin-left: 8px; color: #fff; transition: transform 0.15s ease; display: inline-block; }
.contact-card:hover strong span { transform: translate(3px, -3px); }

.contact-card-center {
  grid-column: 1 / -1;
  max-width: 390px;
  width: 100%;
  margin: 0 auto;
}

/* Star picker */
.star-picker { display: flex; gap: 6px; margin: 4px 0; }
.star-picker .star {
  appearance: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--line-focus);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.1s ease, transform 0.1s ease;
}
.star-picker .star.active { color: #fff; }
.star-picker .star:hover { transform: scale(1.2); }

/* Empty state */
.empty-state { color: var(--muted); font-size: 13px; padding: 40px 0; text-align: center; }

@media (max-width: 700px) {
  .site-header { padding: 0 20px; }
  .section-wrap { padding-right: 20px; padding-left: 20px; }
  .project-grid, .contact-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
  .project-art { height: 260px; }
  .contact-card-center { max-width: 100%; }
}


/* Add this to end of styles.css */
/* Video Gallery & Modal Behance Style */
.video-gallery {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px;
  align-items: center;
  max-height: 80vh;
  overflow-y: auto;
}
.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-thumb {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-thumb video { width: 100%; height: 100%; object-fit: cover; }
.gallery-label { display: flex; align-items: center; gap: 12px; }
.gallery-logo, .gallery-logo-fallback { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--card-raised); display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; }
.gallery-name { font-size: 13px; font-weight: 600; color: #fff; }
.gallery-back {
  align-self: flex-start;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.gallery-back:hover { background: rgba(255,255,255,0.1); }


.project-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

.gallery-back {
  display: none !important;
}

/* Gallery playback: no hover previews or secondary player. */
.video-modal { width: min(1060px, calc(100% - 32px)); max-width: min(1060px, calc(100% - 32px)); max-height: min(88vh, 900px); overflow: hidden; }
.video-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-items: start; gap: 22px; max-height: 88vh; padding: 42px 24px 24px; overflow-y: auto; }
.gallery-title { grid-column: 1 / -1; margin: 0; font-size: 22px; letter-spacing: -.04em; }
.gallery-empty { grid-column: 1 / -1; margin: 0; padding: 18px 0 26px; color: var(--muted); text-align: center; }
.gallery-item { width: 100%; max-width: none; gap: 10px; }
.gallery-thumb { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 12px; background: #000; }
.gallery-thumb-landscape { aspect-ratio: 16 / 9; }
.gallery-thumb > video, .brand-video > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.gallery-thumb > img, .brand-video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-play { position: absolute; inset: auto 10px 10px; z-index: 2; width: calc(100% - 20px); padding: 10px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; background: rgba(0,0,0,.76); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.gallery-play:hover { background: rgba(20,22,26,.96); }
.media-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.brand-video { display: block; }
.brand-video .gallery-play { display: block; }
.vouch-status { max-width: 560px; margin: 18px auto 0; padding: 12px 16px; border: 1px solid var(--line-focus); border-radius: 10px; background: var(--card); color: var(--titanium); font-size: 12px; line-height: 1.6; }
.vouch-status[hidden] { display: none; }
@media (max-width: 700px) {
  .video-gallery { grid-template-columns: minmax(0, 1fr); padding: 44px 18px 18px; }
  .gallery-thumb { max-width: 300px; margin: auto; }
  .gallery-thumb-landscape { max-width: 100%; }
}.project-card .play { position: absolute; right: 17px; bottom: 15px; z-index: 2; display: grid !important; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; pointer-events: none; }
.project-card .art-word { z-index: 1; }
/* Native fullscreen must preserve the whole frame and native controls. */
video:fullscreen,
video:-webkit-full-screen {
  inset: 0 auto auto 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  background: #000 !important;
}
video:fullscreen::-webkit-media-controls-panel,
video:-webkit-full-screen::-webkit-media-controls-panel {
  width: 100% !important;
  max-width: none !important;
}