/* Band of Gorilla website concept by Kelly Studio (v2) */
:root {
  --black: #0b0b0b;
  --paper: #f1eee8;
  --ink: #f1eee8;
  --grey: #9b978f;
  --line: #2a2a2a;
  --orange: #f7941d;
  --blue: #2f7bf0;
  --green: #3cf2a0;
  --font: "Archivo", system-ui, sans-serif;
  --wrap: 1360px;
  --gut: clamp(16px, 3.6vw, 44px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--ink); font: 400 17px/1.6 var(--font); font-stretch: 100%; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--orange); color: #000; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }

/* type */
h1, h2, h3 { font-family: var(--font); font-weight: 800; font-stretch: 72%; letter-spacing: -.015em; line-height: .96; margin: 0; }
h1 { font-size: clamp(52px, 8.4vw, 138px); }
h2 { font-size: clamp(40px, 5.6vw, 92px); }
h3 { font-size: clamp(24px, 2.2vw, 32px); font-stretch: 85%; line-height: 1.08; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.intro { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; max-width: 34em; }
.muted { color: var(--grey); }
.or { color: var(--orange); }
.small { font-size: 14px; }

/* buttons and links */
.btn { display: inline-block; padding: 15px 24px; background: var(--orange); color: #000; font: 700 15px/1 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: background .2s; }
.btn:hover { background: #fff; }
.btn.alt { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.alt:hover { background: var(--ink); color: #000; box-shadow: none; }
.paper .btn.alt:hover { background: #000; color: var(--paper); }
.go { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.go:hover { color: var(--orange); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: var(--black); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 44px; height: 44px; }
.brand .word { width: 146px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--orange); }
.nav .btn { padding: 12px 18px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); font: 700 15px/1 var(--font); cursor: pointer; padding: 12px 0 12px 12px; }
@media (max-width: 880px) {
  .brand .word { display: none; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .menu-open .nav { display: flex; position: fixed; inset: 76px 0 0; background: var(--black); flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px var(--gut); z-index: 49; }
  .menu-open .nav a:not(.btn) { font-size: 34px; font-weight: 800; font-stretch: 75%; padding: 6px 0; }
  .menu-open .nav .btn { margin-top: 20px; font-size: 16px; padding: 16px 22px; }
  body.menu-open { overflow: hidden; }
}

/* sections */
.sec { padding: clamp(64px, 9vw, 130px) 0; }
.paper { background: var(--paper); color: #111; }
.paper .muted { color: #6b675f; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 52px); }

/* home hero: text left, real job photos right */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 64px); align-items: end; }
.hero h1 { max-width: 9.5em; }
.hero .intro { margin-top: 28px; color: #cfcac1; }
.slides { position: relative; }
.slides .frame { position: relative; aspect-ratio: 3 / 4; background: #161616; overflow: hidden; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.slides img.on { opacity: 1; }
.slides .cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 14px; }
.slides .cap b { font-weight: 700; }
.slides .cap span { color: var(--grey); white-space: nowrap; }
.slides .dots { display: flex; gap: 6px; margin-top: 12px; }
.slides .dots button { flex: 1; height: 3px; border: 0; padding: 0; background: #333; cursor: pointer; }
.slides .dots button.on { background: var(--orange); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .slides { max-width: 520px; } }

/* facts line */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.facts div b { display: block; font-weight: 800; font-stretch: 75%; font-size: clamp(32px, 3.4vw, 50px); line-height: 1; }
.facts div span { display: block; margin-top: 8px; font-size: 15px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

/* job grid with captions underneath */
.jobs-grid { columns: 3 300px; column-gap: 20px; }
.job-card { break-inside: avoid; margin: 0 0 28px; }
.job-card img { width: 100%; height: auto; background: #ddd; }
.job-card figcaption { margin-top: 10px; font-size: 15px; line-height: 1.4; }
.job-card figcaption b { display: block; font-weight: 700; }
.job-card figcaption span { color: var(--grey); }
.paper .job-card figcaption span { color: #6b675f; }
.job-card.hide { display: none; }
#all { columns: 4 230px; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.svc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 92%; margin-bottom: 16px; }
.svc h3 { margin-bottom: 8px; }
.svc p { color: var(--grey); margin: 0; font-size: 16px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* two column text */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 90px); align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* full width photo with caption */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; }
.photo figcaption { margin-top: 10px; font-size: 14px; color: var(--grey); }

/* slogan */
.slogan { font-weight: 800; font-stretch: 70%; font-size: clamp(54px, 10vw, 176px); line-height: .9; letter-spacing: -.02em; margin: 0; }
.cols > .slogan { grid-column: 1 / -1; }

/* contact strip */
.contact-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.contact-row h3 { font-size: 15px; font-stretch: 100%; font-weight: 700; margin-bottom: 8px; letter-spacing: 0; }
.contact-row p, .contact-row a { font-size: 17px; }
@media (max-width: 860px) { .contact-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .contact-row { grid-template-columns: 1fr; } }

/* inner page headers */
.page-head { padding: clamp(40px, 6vw, 90px) 0 clamp(36px, 5vw, 70px); }
.page-head .intro { margin-top: 24px; color: #cfcac1; }
.crumb { font-size: 14px; color: var(--grey); margin-bottom: 18px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--orange); }

/* black and white banner, as the brief asks (About, Careers) */
.banner { position: relative; height: clamp(280px, 34vw, 480px); overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.42); }
.banner h1 { position: relative; color: #fff; font-size: clamp(48px, 8vw, 128px); max-width: 10em; padding: 0 var(--gut); }

/* featured row: swipe/scroll, no autoplay */
.row-scroll { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut) 14px; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.row-scroll .job-card { flex: 0 0 clamp(240px, 24vw, 340px); scroll-snap-align: start; margin: 0; }
.row-scroll .job-card img { aspect-ratio: 3 / 4; object-fit: cover; }
.row-ctrl { display: flex; gap: 8px; }
.row-ctrl button { width: 48px; height: 48px; border: 2px solid currentColor; background: none; color: inherit; font: 700 20px/1 var(--font); cursor: pointer; }
.row-ctrl button:hover { background: var(--orange); border-color: var(--orange); color: #000; }

/* filters */
.tabs { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 34px; }
.tabs button { background: none; border: 0; padding: 4px 0; font: 600 16px/1.4 var(--font); color: #6b675f; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button:hover { color: #111; }
.tabs button[aria-pressed="true"] { color: #111; border-bottom-color: var(--orange); }

/* about */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.values h3 { margin-bottom: 10px; }
.values p { color: #4a4740; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.dept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 32px; }
.dept img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 92%; margin-bottom: 18px; }
.dept h3 { margin-bottom: 10px; }
.dept p { color: var(--grey); }
@media (max-width: 760px) { .dept-grid { grid-template-columns: 1fr; } }

.leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 28px; }
.leader { position: relative; margin: 0; aspect-ratio: 3 / 5; overflow: hidden; background: #151515; isolation: isolate; }
.leader .shape { position: absolute; z-index: -1; right: 0; top: 12%; width: 70%; height: 46%; background: var(--green); border-radius: 0 0 0 200px; }
.leader:nth-child(2) .shape { left: 0; right: auto; border-radius: 0 0 200px 0; }
.leader .person { position: absolute; left: 8%; right: 8%; bottom: 0; top: 20%; display: flex; align-items: flex-end; justify-content: center; }
.leader .person svg { width: 100%; height: auto; max-height: 100%; }
.leader .person svg * { fill: #2e2e2e; }
.leader figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(0,0,0,.85); padding: 14px 16px; text-align: center; }
.leader figcaption b { display: block; font-weight: 800; font-stretch: 75%; font-size: 24px; line-height: 1.1; color: var(--green); text-transform: uppercase; }
.leader figcaption span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.leader .soon { position: absolute; top: 14px; left: 14px; font-size: 12px; color: var(--grey); }
@media (max-width: 640px) { .leaders { grid-template-columns: 1fr; } .leader { aspect-ratio: 3 / 4.2; } }

/* careers */
.roles { display: grid; gap: 10px; }
.role { background: #161616; }
.role summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 24px; }
.role summary::-webkit-details-marker { display: none; }
.role summary h3 { font-size: clamp(24px, 2.6vw, 36px); }
.role summary .meta { display: block; margin-top: 6px; font-size: 15px; color: var(--grey); }
.role summary .tog { font-size: 15px; font-weight: 700; white-space: nowrap; color: var(--orange); }
.role summary .tog::before { content: "Read more"; }
.role[open] summary .tog::before { content: "Close"; }
.role-body { padding: 0 24px 26px; max-width: 64em; }
.role-body p { color: #cfcac1; }

/* contact page */
.form { background: #161616; padding: clamp(22px, 3.4vw, 40px); }
.form h2 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 22px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; font: 400 16px/1.4 var(--font); color: #fff; background: #0b0b0b; border: 1.5px solid #333; padding: 13px 14px; outline: none; border-radius: 0; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .note { font-size: 14px; color: var(--grey); margin: 12px 0 0; }
.info p { margin: 0 0 22px; }
.info h3 { font-size: 15px; font-stretch: 100%; font-weight: 700; letter-spacing: 0; margin-bottom: 4px; color: var(--grey); }
.map { height: 420px; background: #161616; margin-top: clamp(40px, 6vw, 80px); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1); }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }

/* footer */
.foot { padding: clamp(56px, 7vw, 90px) 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot .word { width: 200px; margin-bottom: 16px; }
.foot h4 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; color: var(--grey); }
.foot a:hover { color: var(--orange); }
.foot p { color: var(--grey); font-size: 15px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; font-size: 13px; color: var(--grey); }
.foot-base a { color: var(--ink); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

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