/* Minimal, spacious, black/white aesthetic */
:root {
  --bg: #eaeaed; /* darker gray background */
  --fg: #111111;
  --muted: #6b7280; /* gray-500 */
  --line: #e5e7eb;  /* gray-200 */
  --subtle: #f7f7f8;
  --accent: #111111;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.center { text-align: center; }
.center-grid { justify-items: center; }

.section { padding: 88px 0; }
.section.subtle { background: var(--subtle); }
.section .muted { color: var(--muted); }
.narrow { max-width: 760px; }
.section h2 { text-align: center; margin: 0 0 24px; font-size: clamp(24px, 4.2vw, 44px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 120px; }
.brand img { height: 100px; width: auto; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--fg); opacity: 0.8; }
.nav a:hover { opacity: 1; }
.nav .nav-cta { opacity: 1; border: 1px solid var(--fg); padding: 8px 14px; border-radius: 8px; background: var(--fg); color: #fff; line-height: 1; display: inline-flex; align-items: center; }
.nav .nav-cta:hover { opacity: 0.9; }

/* Hero */
.hero { padding: 120px 0; position: relative; overflow: hidden; min-height: 80vh; display: flex; align-items: center; }
.video-bg { position: absolute; inset: 0; z-index: -2; }
.video-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.35)); z-index: 1; }
.hero .headline, .hero .lede, .hero .actions { position: relative; z-index: 2; color: #fff; }
.headline {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.lede { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); max-width: 760px; margin-left: auto; margin-right: auto; }
.actions { display: flex; gap: 12px; margin-top: 28px; }
.actions.center { justify-content: center; }

.btn {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
}
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn:hover { transform: translateY(-1px); }

/* Grids */
.grid { display: grid; gap: 20px; }
.services { grid-template-columns: repeat(2, 1fr); }
.industries { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.works { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.card { border: none; border-radius: 12px; padding: 24px; background: transparent; cursor: pointer; text-align: center; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); }
.services .card h3 { font-size: clamp(22px, 2.8vw, 30px); letter-spacing: -0.01em; }
.services .card:hover { background: #fafafa; }

.pill {
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 999px;
  text-align: center;
  background: #fff;
}

/* Work cards */
.work-card { display: flex; align-items: center; height: clamp(190px, 24vw, 240px); border: none; border-radius: 16px; overflow: hidden; background: #fff; transition: transform 160ms ease; }
.work-card:hover { transform: translateY(-2px); }
.work-card .thumb { flex: 1 1 auto; min-width: 0; height: 100%; background: radial-gradient(circle at 50% 50%, #d1d5db 0%, #e5e7eb 60%, #f3f4f6 100%); position: relative; }
.work-card .thumb::after { content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" fill=\"none\"><circle cx=\"50\" cy=\"50\" r=\"44\" stroke=\"%23111111\" stroke-width=\"4\" fill=\"rgba(255,255,255,.8)\"/><path d=\"M40 30 L75 50 L40 70 Z\" fill=\"%23111111\"/></svg>') center/80px 80px no-repeat; mix-blend-mode: multiply; opacity: 0.9; }
.work-meta { width: 0; opacity: 0; padding: 0; transition: all 220ms ease; overflow: hidden; white-space: nowrap; }
.work-card:hover .work-meta { width: 40%; opacity: 1; padding: 14px 16px; }
.work-meta h3 { margin: 0 0 6px; font-size: 18px; text-align: left; }
.work-meta p { margin: 0; color: var(--muted); font-size: 14px; text-align: left; }

/* Clients strip */
.clients-strip { background: #111; padding: 40px 0; }
.client-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; align-items: center; }
.client-logos img { width: 100%; height: auto; object-fit: contain; filter: grayscale(100%); border: none; background: transparent; padding: 8px; opacity: 0.9; }

/* Contact */
.contact-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.contact-meta { color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.contact-meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; text-align: center; }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 12px; }
.footer-links { display: none; }

/* Small screens */
@media (max-width: 720px) {
  .nav { display: none; }
  .hero { padding-top: 96px; }
  .contact-meta { flex-direction: column; gap: 6px; }
}

/* Quote */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote blockquote { font-size: clamp(20px, 3.2vw, 28px); line-height: 1.3; margin: 0; font-weight: 600; }
.quote figcaption { margin-top: 10px; color: var(--muted); }

/* Accordion */
.accordion { display: block; margin-top: 16px; }
.accordion .acc-item { border-top: 1px solid var(--line); }
.accordion .acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-header {
  width: 100%;
  text-align: center;
  padding: 18px 8px;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: clamp(20px, 3.2vw, 32px);
  font-weight: 700;
  position: relative;
}
.acc-header::after { content: ''; width: 10px; height: 10px; border-right: 2px solid #555; border-bottom: 2px solid #555; transform: rotate(45deg); display: inline-block; margin-left: 10px; vertical-align: middle; }
.acc-header[aria-expanded="true"]::after { transform: rotate(-135deg); }
.acc-header[aria-expanded="true"] { background: transparent; }
.acc-panel { border: none; border-radius: 0; padding: 18px 0 24px; background: transparent; }
.acc-panel[hidden] { display: none; }

/* Selected work heading size */
#work h2 { font-size: clamp(24px, 4.2vw, 44px); }

/* Tabs */
.tabs { margin-top: 8px; }
.tab-list { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; }
.tab.is-active { background: var(--fg); color: #fff; border-color: var(--fg); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .28s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Video grid */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.video-card.featured { grid-column: 1 / -1; }
.video-card { position: relative; border-radius: 16px; overflow: hidden; background: #f5f5f5; }
.video-card .thumb { aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 50%, #d1d5db 0%, #e5e7eb 60%, #f3f4f6 100%); }
.video-card.featured .thumb { aspect-ratio: auto; height: clamp(260px, 40vw, 520px); }
.video-card:nth-child(n+2) .thumb { aspect-ratio: 16 / 9; }
.video-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.1)); color: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; text-align: left; padding: 16px; opacity: 0; transition: opacity .18s ease; }
.video-card:hover .overlay { opacity: 1; }
.video-card .overlay h3 { margin: 0 0 6px; font-size: clamp(16px, 2.4vw, 22px); }
.video-card .overlay p { margin: 0; color: #e5e7eb; font-size: 14px; }

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

/* About carousel + centering */
.about { position: relative; min-height: 70vh; }
.about .carousel { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.about .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: aboutFade 32s infinite; }
.about .slide:nth-child(1) { animation-delay: 0s; }
.about .slide:nth-child(2) { animation-delay: 4s; }
.about .slide:nth-child(3) { animation-delay: 8s; }
.about .slide:nth-child(4) { animation-delay: 12s; }
.about .slide:nth-child(5) { animation-delay: 16s; }
.about .slide:nth-child(6) { animation-delay: 20s; }
.about .slide:nth-child(7) { animation-delay: 24s; }
.about .slide:nth-child(8) { animation-delay: 28s; }
.about::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.45)); z-index: -1; }
.about .about-content { position: relative; min-height: 70vh; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }

@keyframes aboutFade {
  0%, 16% { opacity: 1; }
  20%, 100% { opacity: 0; }
}

@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
}

/* Team */
.team { background: #111; color: #fff; }
.team h2 { color: #fff; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { text-align: center; }
.team-card .insta-link { display: block; border-radius: 0; }
.team-card .img-frame { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; position: relative; }
.team-card .img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(100%); transition: filter 200ms ease, transform 200ms ease; transform: translateY(0); }
.team-card:hover .img-frame img { filter: grayscale(0%); }
.team-card .name { margin-top: 10px; font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; }
.team-card .role { margin-top: 4px; color: #d1d5db; font-size: 14px; }

@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* Removed per-card image shift to restore original alignment */

/* Locked card size on phone views */
@media (max-width: 480px) {
  .team-grid { grid-template-columns: repeat(2, 150px); justify-content: center; justify-items: center; column-gap: 20px; row-gap: 20px; }
  .team-card { width: 150px; }
  .team-card .img-frame { width: 150px; height: 150px; aspect-ratio: auto; }
}

@media (min-width: 481px) and (max-width: 720px) {
  .team-grid { grid-template-columns: repeat(2, 180px); justify-content: center; justify-items: center; column-gap: 20px; row-gap: 20px; }
  .team-card { width: 180px; }
  .team-card .img-frame { width: 180px; height: 180px; aspect-ratio: auto; }
}
@media (max-width: 420px) { .team-grid { grid-template-columns: 1fr; } }
